4 ms·
I think in the second one, a simple list of values that correspond to true would be more reasonable than putting this in your source code, if you just need a lo
by chickenfries 9y ago
I think in the second one, a simple list of values that correspond to true would be more reasonable than putting this in your source code, if you just need a look up table. The way the comments are structured though, I wonder if each row an option map, (annotated by the comments along the top)
- Houshalter 9y agoThe second example was a 15 line switch statement that they replaced with a lookup because they thought it would be faster.