query
On this page

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" ]
(lib.lists.concatMap)

Noogle detected

Aliases

Implementation

This function is implemented in c++ and is part of the native nix runtime.