query
On this page

concatMap

lib.concatMap

Primop
Docs pulled from | This Revision | about 9 hours 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 also knows

Aliases