Closed robb closed 11 years ago
Can't you do that using filter?
Actually, it's not possible to do that only with filter
. You need access to the element's index whereas filter
only passes the element to its block.
I totally failed here, take
is already implemented by head
. That being said, something like underscore.js' initial could by useful:
Underscore.initial(@[ @1, @2, @3 ], 1); // 1, 2
essentially a dropRight
Fixed by @vascoorey in #42
Edit:
take
totally ishead
anyways