Copyright | (c) 2021 Rudy Matela |
---|---|
License | 3-Clause BSD (see the file LICENSE) |
Maintainer | Rudy Matela <rudy@matela.com.br> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- module Data.List
- module Data.Function
- module Data.Maybe
- module Data.Monoid
- module Data.Tuple
- module Data.Typeable
- count :: (a -> Bool) -> [a] -> Int
- nubOn :: Eq b => (a -> b) -> [a] -> [a]
- nubSort :: Ord a => [a] -> [a]
- mzip :: Monoid a => [a] -> [a] -> [a]
- groupOn :: Eq b => (a -> b) -> [a] -> [[a]]
- idIO :: (a -> IO ()) -> a -> a
- mapHead :: (a -> a) -> [a] -> [a]
- sets :: [a] -> [[a]]
- headOr :: a -> [a] -> a
- allEqual :: Eq a => [a] -> Bool
- choices :: [a] -> [(a, [a])]
- choicesThat :: (a -> [a] -> Bool) -> [a] -> [(a, [a])]
- foldr0 :: (a -> a -> a) -> a -> [a] -> a
Documentation
module Data.List
module Data.Function
module Data.Maybe
module Data.Monoid
module Data.Tuple
module Data.Typeable
mzip :: Monoid a => [a] -> [a] -> [a] Source #
Zips Monoid
values leaving trailing values.
> mzip ["ab","cd"] ["ef"] ["abef","cd"]
idIO :: (a -> IO ()) -> a -> a Source #
WARNING:
uses unsafePerformIO
and should only be used for debugging!
> idIO print 10 10 10
Return sets of values based on the list.
The values in the list must me unique.
allEqual :: Eq a => [a] -> Bool Source #
Checks if all elements of a list are equal.
Exceptionally this function returns false for an empty or unit list.
choicesThat :: (a -> [a] -> Bool) -> [a] -> [(a, [a])] Source #
Lists choices of values that follow a property.