lists-0.0.0: Functions for dealing with lists
Data.Lists
Description
Extra functions for dealing with lists.
Synopsis
list :: b -> ([a] -> b) -> [a] -> bSource
When a list is non-null, pass it to a function, otherwise use the default.
unionOf :: Eq a => [[a]] -> [a]Source
Get the union of the given lists.
for :: [a] -> (a -> b) -> [b]Source
Opposite of map.
lastToMaybe :: [a] -> Maybe aSource
Maybe get the last element in the list.
firstOr :: a -> [a] -> aSource
Return the first item of a list or something else.
maxList :: (Num t, Ord t) => [t] -> tSource
Get the maximum of a list or return zero.
module Data.List