Portability | Haskell98 |
---|---|
Stability | stable |
Maintainer | wren@community.haskell.org |
Safe Haskell | Safe-Inferred |
This module provides a single header for all Data.List.Extras.*
modules and provides a small number of other utility functions.
- list :: (a -> [a] -> b) -> b -> [a] -> b
- module Data.List.Extras.LazyLength
- module Data.List.Extras.Pair
- module Data.List.Extras.Argmax
Documentation
list :: (a -> [a] -> b) -> b -> [a] -> bSource
Pattern matching for lists, as a first-class function. (Could
also be considered as a non-recursive foldr
.) If the list
argument is []
then the default argument is returned; otherwise
the function is called with the head and tail of the list.
module Data.List.Extras.LazyLength
module Data.List.Extras.Pair
module Data.List.Extras.Argmax