Well I'm not so sure how important that is, especially as it loses useful and already obtained information (ie the count). Also for the canonical return isn't
0 < grep better? It would also return the canonical true/false but is only a single operator...
---
demerphq
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
| [reply] [d/l] |
Ah, but !! is an idiom, and more readily recognizable to my eyes. With 0< it takes me a second to figure out what the code is trying to compare. In any case, 0 < has to load a constant then do a compare, so it's still two ops.
| [reply] |