Source/Packages

Std.List

packages/foundation/standard/src/Std/List.alpha

428 lines21 declarations14.7 KiBSHA-256 1d350bdfe159

def · lines 44–53

stdListHeadOr

Full file
The first element, or the supplied default for an empty list.
44def stdListHeadOr =
45  (lambda erased element : Type 0 .
46    unrestricted fallback : element .
47    unrestricted values : (family StdList element) .
48    eliminate
49      StdList
50      (lambda unrestricted current : (family StdList element) . element)
51      values
52      (branch StdListEmpty . fallback)
53      (branch StdListCons head tail induction . head))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.