concatMap
builtins.concatMap
Primop
Docs pulled from | This Revision | about 1 hour ago
Takes 2 arguments
f, list
Map and concatenate the result.
Type
concatMap :: (a -> [b]) -> [a] -> [b]
Examples
lib.lists.concatMap
usage example
concatMap (x: [x] ++ ["z"]) ["a" "b"]
=> [ "a" "z" "b" "z" ]
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
Implementation
This function is implemented in c++ and is part of the native nix runtime.