imap0
lib.imap0
Docs pulled from | This Revision | about 9 hours ago
Map with index starting from 0
Inputs
f
-
1. Function argument
list
-
2. Function argument
Type
imap0 :: (int -> a -> b) -> [a] -> [b]
Examples
lib.lists.imap0
usage example
imap0 (i: v: "${v}-${toString i}") ["a" "b"]
=> [ "a-0" "b-1" ]