Copyright | (c) 2015 by Nate Pisarski |
---|---|
License | BSD3 |
Maintainer | nathanpisarski@gmail.com |
Stability | Stable |
Portability | Portable (Standalone - ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
"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 -> Int Source #
C-style wrapper for positions. Returns the first occurrence in a list, or -1 on notElem.
apply :: [a -> a] -> a -> a Source #
Reversal of map function. Chains calls of functions over a parameter, starting with head.
fromLast :: ([a] -> [a]) -> [a] -> [a] Source #
Execute a function from the end of a list to the front.