Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a load of list functions * "List.scanl'" List.scanl' :: forall a b. (b -> a -> b) -> b -> [a] -> [b] * "List.scanr" List.scanr :: forall a b. (a -> b -> b) -> b -> [a] -> [b] * "List.concatMap" List.concatMap :: forall a b. (a -> [b]) -> [a] -> [b] * "List.splitAt" List.splitAt :: forall a. Int -> [a] -> ([a],[a]) * "List.break" List.break :: forall a. (a -> Bool) -> [a] -> ([a],[a]) * "List.span" List.span :: forall a. (a -> Bool) -> [a] -> ([a],[a]) * "List.partition" List.partition :: forall a. (a -> Bool) -> [a] -> ([a],[a]) * "List.takeWhile" List.takeWhile :: forall a. (a -> Bool) -> [a] -> [a] * "List.dropWhile" List.dropWhile :: forall a. (a -> Bool) -> [a] -> [a] * "List.dropWhileEnd" List.dropWhileEnd :: forall a. (a -> Bool) -> [a] -> [a] * "List.any" List.any :: forall a. (a -> Bool) -> [a] -> Bool * "List.all" List.all :: forall a. (a -> Bool) -> [a] -> Bool * "List.repeat" List.repeat :: forall a. a -> [a] * "List.cycle" List.cycle :: forall a. [a] -> [a] * "List.foldr" List.foldr :: forall a b. (a -> b -> b) -> b -> [a] -> b * "List.unfoldr" List.unfoldr :: forall a b. (b -> Maybe (a, b)) -> b -> [a] * "List.mapAccumL" List.mapAccumL :: forall s a b. (s -> a -> (s, b)) -> s -> [a] -> (s, [b]) * "List.mapAccumR" List.mapAccumL :: forall s a b. (s -> a -> (s, b)) -> s -> [a] -> (s, [b]) * "List.find" List.find :: forall a b. (a -> Bool) -> [a] -> Maybe a * "List.group" List.group :: forall a. Eq a => [a] -> [[a]] * "List.isPrefixOf" List.isPrefixOf :: forall a. Eq a => [a] -> [a] -> Bool * "List.isSuffixOf" List.isSuffixOf :: forall a. Eq a => [a] -> [a] -> Bool * "List.isInfixOf" List.isInfixOf :: forall a. Eq a => [a] -> [a] -> Bool * "List.isSubsequenceOf" List.isSubsequenceOf :: forall a. Eq a => [a] -> [a] -> Bool * "List.nubOrd" nubOrd :: forall a. Ord a => [a] -> [a] * "List.inits" List.inits :: forall a. [a] -> [[a]] * "List.tails" List.tails :: forall a. [a] -> [[a]] * "List.deleteBy" List.deleteBy :: forall a. (a -> a -> Bool) -> a -> [a] -> [a] * "List.elem" List.elem :: forall a. Eq a => a -> [a] -> Bool * "List.notElem" List.notElem :: forall a. Eq a => a -> [a] -> Bool * "List.null" List.null :: forall a. [a] -> Bool * "List.elemIndex" List.elemIndex :: forall a. Eq a => a -> [a] -> Maybe Int * "List.elemIndices" List.elemIndices :: forall a. Eq a => a -> [a] -> [Int] * "List.findIndex" List.findIndex :: forall a. (a -> Bool) -> [a] -> Maybe Int * "List.findIndices" List.findIndices :: forall a. (a -> Bool) -> [a] -> [Int] * "List.uncons" List.uncons :: forall a. [a] -> Maybe (a, [a]) * "List.intersperse" List.intersperse :: forall a. a -> [a] -> [a] * "List.intercalate" List.intercalate :: forall a. [a] -> [[a]] -> [a] * "List.transpose" List.transpose :: forall a. [[a]] -> [[a]] * "List.subsequences" List.subsequences :: forall a. [a] -> [[a]] * "List.permutations" List.permutations :: forall a. [a] -> [[a]] * Slight style change on docs
- Loading branch information