Skip to content

Commit

Permalink
Add a load of list functions (#44)
Browse files Browse the repository at this point in the history
* 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
chrisdone authored Oct 7, 2024
1 parent 6c8cfc8 commit f1abb01
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 5 deletions.
Loading

0 comments on commit f1abb01

Please sign in to comment.