Prospero.List
Functions on Lists. Many functions that you might expect to find here are provided generically by Foldable in the Prelude module.
Functions
filter : forall a. (a -> Bool) -> List a -> List a
Returns the elements of the supplied list xs that satisfy the supplied predicate p.
range : Int -> Int -> List Int
Returns the integers in the range lo..hi (including both low and high).
replicate : forall a. Int -> a -> List a
Returns a list of length n that contains the supplied value x at every element.
reverse : forall a. List a -> List a
Returns the supplied list xs in reverse order.
singleton : forall a. a -> List a
Returns a list containing a single supplied element x.