Safe Haskell | None |
---|

Functions that cope both with plain and non-empty structures.

If there are two versions of a function, where one works on fixed-length lists, the place the fixed-length list variant to NonEmpty and the other one here.

# Documentation

segmentBefore :: Foldable f => (a -> Bool) -> f a -> ([a], [T [] a])Source

mapAdjacent :: (Cons f, Zip f) => (a -> a -> b) -> T f a -> f bSource

appendLeft :: Cons f => [a] -> f a -> f aSource