/Prelude-v16.0.0/List/empty

Copy path to clipboard

Examples

empty Bool ≡ ([] : List Bool)

Source

{-
An empty list of the given type
-}
let empty
: ∀(a : Type) → List a
= λ(a : Type) → [] : List a

let example0 = assert : empty Bool ≡ ([] : List Bool)

in empty