dhall-nix-lib/NonEmpty/Type.dhall

10 lines
200 B
Text
Raw Normal View History

2022-09-01 19:25:02 +00:00
{-|
A `NonEmpty` list has at least one element and supports many of the same
operations as `List`s
-}
let NonEmpty
: Type → Type
= λ(a : Type) → { head : a, tail : List a }
in NonEmpty