sutori-0.2.4: Sutori language compiler

Safe HaskellSafe
LanguageHaskell2010

Sutori.Utils.List

Description

 

Synopsis

Documentation

anyf :: [a -> Bool] -> a -> Bool Source #

Conjunction of a the results of a list of functions applied to a single value

allf :: [a -> Bool] -> a -> Bool Source #

Conjunction of a the results of a list of functions applied to a single value

repeated :: Ord a => [a] -> [a] Source #

Filters out unique elements in a list

repeatedBy :: (Eq c, Ord b) => (a -> c) -> (a -> b) -> [a] -> [a] Source #

Filters consecutive uniques, given a grouping and a sorting function

filterBy :: Ord a => ([a] -> Bool) -> [a] -> [[a]] Source #

Filters a list with a given filter function