-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi Adam,
It would be nice if .map would provide the index value as the second argument to its callback, or that the documentation clearly states that contrarily to Array::map, the index is provided as the third argument ;)
Typically, providing the index as second argument, one could write
lines.map (line,index) => …
or
lines().map (line,index) => …
(I'm a bit unclear on what the value currently provided in the second argument to enter would be, as well, but I haven't needed it.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels