concatMap
lib.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" ]
Noogle detected
Implementation
This function is implemented in c++ and is part of the native nix runtime.