Portability | Portable (Standalone - ghc) |
---|---|
Stability | Stable |
Maintainer | nathanpisarski@gmail.com |
Safe Haskell | Safe-Inferred |
global functions for the entirety of the Cookbook library. Common is the potpourri of Cookbook, with no category except everything uses me!
Documentation
pos :: Eq a => [a] -> a -> IntSource
C-style wrapper for positions. Returns the first occurrence in a list, or -1 on notElem.
apply :: [a -> a] -> a -> aSource
Reversal of map function. Chains calls of functions over a parameter, starting with head.
afterX :: Eq a => [a] -> a -> Int -> [a]Source
After a certain number of an element, return the list.
Internal implementation of intersperse.