Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
streamly Streamly.Prelude No documentation available.
concatMap :: Foldable t => (a -> [b]) -> t a -> [b]copilot-language Copilot.Language.Prelude Map a function over all the elements of a container and concatenate the resulting lists.
Examples
Basic usage:>>> concatMap (take 3) [[1..], [10..], [100..], [1000..]] [1,2,3,10,11,12,100,101,102,1000,1001,1002]
>>> concatMap (take 3) (Just [1..]) [1,2,3]
concatMap :: Foldable t => (a -> [b]) -> t a -> [b]xmonad-contrib XMonad.Prelude Map a function over all the elements of a container and concatenate the resulting lists.
Examples
Basic usage:>>> concatMap (take 3) [[1..], [10..], [100..], [1000..]] [1,2,3,10,11,12,100,101,102,1000,1001,1002]
>>> concatMap (take 3) (Just [1..]) [1,2,3]
type family
ConcatMap (a1 :: a ~> [b]) (a2 :: t a) :: [b]singletons-base Prelude.Singletons No documentation available.
data
ConcatMapSym0 (a1 :: TyFun a ~> [b] t a ~> [b])singletons-base Prelude.Singletons No documentation available.
data
ConcatMapSym1 (a6989586621680406912 :: a ~> [b]) (b1 :: TyFun t a [b])singletons-base Prelude.Singletons No documentation available.
type family
ConcatMapSym2 (a6989586621680406912 :: a ~> [b]) (a6989586621680406913 :: t a) :: [b]singletons-base Prelude.Singletons No documentation available.
data
ConcatSym0 (a1 :: TyFun t [a] [a])singletons-base Prelude.Singletons No documentation available.
type family
ConcatSym1 (a6989586621680406923 :: t [a]) :: [a]singletons-base Prelude.Singletons No documentation available.
mconcat :: Monoid a => [a] -> abase Prelude 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!"