Module

Erl.Data.List.Types

#nelCons

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

#nil

nil :: forall a. List a

#cons

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

#uncons

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

null :: forall a. List a -> Boolean

Test whether a list is empty.

Running time: O(1)

#(:)

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

Modules