map
builtins.map
Primop
Docs pulled from | This Revision | about 6 hours 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 defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Detected Type
map :: (a -> b) -> [a] -> [b]
Implementation
This function is implemented in c++ and is part of the native nix runtime.