query
On this page

map

builtins.map

Primop
Docs pulled from | This Revision | 39 minutes ago

Takes 2 arguments

f, list


Apply the function f to each element in the list list. For example,

map (x: "foo" + x) [ "bar" "bla" "abc" ]

evaluates to [ "foobar" "foobla" "fooabc" ].

This function is not declared in a .nix file

Noogle also knows

Aliases
Detected Type
map :: (a -> b) -> [a] -> [b]