¤ stripLeft, stripRight, et al

Various utility functions for the Either type

Types

stripLeft :: Either a b -> Maybe a
stripRight :: Either a b -> Maybe b
stripEither :: Either a a -> a
filterLeft :: [Either a b] -> [a]
filterRight :: [Either a b] -> [b]
isLeft :: Either a b -> Bool
isRight :: Either a b -> Bool
mapEither :: (a -> b) -> (c -> d) -> Either a c -> Either b d
swapEither :: Either a b -> Either b a
splitEitherList :: [Either a b] -> ([a], [b])
fromLeft :: Either a b -> a
fromRight :: Either a b -> b

Description

These are various common utility functions for the Either type.

See Also

Either.