Module

Erl.Data.List.Types

Package
erl-lists
Repository
purerl/purescript-erl-lists

#nelCons Source

nelCons :: forall a. a -> NonEmptyList a -> NonEmptyList a

#nil Source

nil :: forall a. List a

#cons Source

cons :: forall a. a -> List a -> List a

#uncons Source

uncons :: forall a. List a -> Maybe { head :: a, tail :: List a }

Break a list into its first element, and the remaining elements, or Nothing if the list is empty.

Running time: O(1)

#null Source

null :: forall a. List a -> Boolean

Test whether a list is empty.

Running time: O(1)

#(:) Source

Operator alias for Erl.Data.List.Types.cons (right-associative / precedence 6)