concat -is:exact package:base-prelude
The concatenation of all the elements of a container of lists.
Map a function over all the elements of a container and concatenate
the resulting lists.
Fold a list using the monoid.
For most types, the default definition for
mconcat will be
used, but the function is included in the class definition so that an
optimized version can be provided for specific types.
>>> mconcat ["Hello", " ", "Haskell", "!"]
"Hello Haskell!"
Reduce a non-empty list with
<>
The default definition should be sufficient, but this can be
overridden for efficiency.
>>> import Data.List.NonEmpty
>>> sconcat $ "Hello" :| [" ", "Haskell", "!"]
"Hello Haskell!"