Skip to content
Cinch
Packages/cinch-collections/Data.NonEmpty
SAMPLE API
MODULE REFERENCE

Data.NonEmpty

Collections whose type guarantees at least one element.

SYNOPSIS
IMPORTSData.List

Types and classes

Functions and values

head

function§Source ↗
head :: forall a. NonEmpty a -> a

Read the first element. No empty case is possible.

to-list

function§Source ↗
to-list :: forall a. NonEmpty a -> List a

Forget the nonempty guarantee and retain the values.