Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- intercalate1 :: Exon a => a -> NonEmpty a -> a
- intercalateMay :: Exon a => Foldable t => a -> t a -> Maybe a
- intercalate :: Exon a => Monoid a => Foldable t => a -> t a -> a
Documentation
intercalate1 :: Exon a => a -> NonEmpty a -> a Source #
Combine the elements in the list using Exon
, interspersing the separator between each pair of elements.
intercalate :: Exon a => Monoid a => Foldable t => a -> t a -> a Source #
Combine the elements in the list using Exon
, interspersing the separator between each pair of elements.
Returns mempty
for empty lists; use intercalate1
for NonEmpty
or intercalateMay
to avoid the Monoid
requirement.