query
On this page

imap

lib.imap

Docs pulled from | This Revision | 31 minutes ago


Map with index starting from 1

Inputs

f

1. Function argument

list

2. Function argument

Type

imap1 :: (int -> a -> b) -> [a] -> [b]

Examples

lib.lists.imap1 usage example

imap1 (i: v: "${v}-${toString i}") ["a" "b"]
=> [ "a-1" "b-2" ]
(lib.lists.imap1)

Noogle also knows

Aliases