Source/Packages

Std.List

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

361 lines21 declarations15.3 KiBSHA-256 b071be8610d6

def · lines 34–42

stdListLength

Full file
The number of elements.
34def stdListLength =
35  (lambda erased element : Type 0 .
36    (lambda unrestricted values : (family StdList element) .
37      (eliminate
38        StdList
39        (lambda unrestricted current : (family StdList element) . Nat)
40        values
41        (branch StdListEmpty . zero)
42        (branch StdListCons head tail induction . (succ induction)))))

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.