4 ms·
'Underscore.m' seems a lot nicer to me: http://underscorem.org/ http://underscorem.org/ I mean, what? N* value = (N*) hash.getOrAdd(l, ^{ return N.I(0); });
by Groxx 14y ago
'Underscore.m' seems a lot nicer to me: http://underscorem.org/ http://underscorem.org/
I mean, what?
N* value = (N*) hash.getOrAdd(l, ^{ return N.I(0); });
I'll take a minor increase in verbosity for a massive increase in readability in the future.
(edited; unwrapping is needed in both libraries)
- aaronbrethorst 14y agoAgreed, I hadn't seen this library before.
- Groxx 14y agofwiw, I do like seeing a variety of libraries - they occasionally come to the same kind behavior through different techniques. It's a fun way to get a deeper knowledge of the language.