Hoogle Search
Within LTS Haskell 22.20 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
concat :: Foldable t => t [a] -> [a]base Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: Foldable t => t [a] -> [a]amazonka-core Amazonka.Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: Foldable t => t [a] -> [a]hedgehog Hedgehog.Internal.Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: Foldable t => t [a] -> [a]ghc GHC.Prelude.Basic The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: (Functor m, Foldable f) => Pipe (f a) a m rpipes Pipes.Prelude Flatten all Foldable elements flowing downstream
concat :: Foldable t => t [a] -> [a]rio RIO.Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: Foldable t => t [a] -> [a]Cabal-syntax Distribution.Compat.Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: Foldable t => t [a] -> [a]ghc-lib-parser GHC.Prelude.Basic The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
concat :: (Monad m, Foldable f) => Stream (Of (f a)) m r -> Stream (Of a) m rstreaming Streaming.Prelude Make a stream of foldable containers into a stream of their separate elements. This is just
concat str = for str each
>>> S.print $ S.concat (each ["xy","z"]) 'x' 'y' 'z'
Note that it also has the effect of catMaybes, rights map snd and such-like operations.>>> S.print $ S.concat $ S.each [Just 1, Nothing, Just 2] 1 2 >>> S.print $ S.concat $ S.each [Right 1, Left "Error!", Right 2] 1 2 >>> S.print $ S.concat $ S.each [('A',1), ('B',2)] 1 2
concat :: Foldable t => t [a] -> [a]numhask NumHask.Prelude The concatenation of all the elements of a container of lists.
Examples
Basic usage:>>> concat (Just [1, 2, 3]) [1,2,3]
>>> concat (Left 42) []
>>> concat [[1, 2, 3], [4, 5], [6], []] [1,2,3,4,5,6]
Page 1 of many | Next