cinch-base / 0.1.0Data/List.cinch
Declaration source.
This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.
module Data.List where3
-- A finite sequence of values of the same type.4
data List a5
-- Nil :: List a6
-- Cons :: a -> List a -> List a8
-- Transform each element, retaining the order of the input.9
map :: forall a b. (a -> b) -> List a -> List b11
-- Fold a list from the right using a combining function and an initial value.12
foldr :: forall a b. (a -> b -> b) -> b -> List a -> b