Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- list :: [b] -> (a -> b) -> [a] -> [b]
- ordNub :: Ord a => [a] -> [a]
- sortOn :: Ord o => (a -> o) -> [a] -> [a]
- unzip :: [(a, b)] -> ([a], [b])
- unzip3 :: [(a, b, c)] -> ([a], [b], [c])
- whenNotNull :: Applicative f => [a] -> (NonEmpty a -> f ()) -> f ()
- whenNotNullM :: Monad m => m [a] -> (NonEmpty a -> m ()) -> m ()
- zip :: [a] -> [b] -> [(a, b)]
- zip3 :: [a] -> [b] -> [c] -> [(a, b, c)]
Documentation
unzip :: [(a, b)] -> ([a], [b]) #
unzip
transforms a list of pairs into a list of first components
and a list of second components.
whenNotNull :: Applicative f => [a] -> (NonEmpty a -> f ()) -> f () Source #
whenNotNullM :: Monad m => m [a] -> (NonEmpty a -> m ()) -> m () Source #