Source/Packages

Std.List

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

317 lines21 declarations13.5 KiBSHA-256 0d04bb5f90d2

def · lines 100–113

stdListReverse

Full file
The list in the opposite order.
100def stdListReverse =
101  (lambda erased element : Type 0 . unrestricted values : (family StdList element) .
102    app
103      (eliminate
104        StdList
105        (lambda unrestricted current : (family StdList element) .
106          pi unrestricted accumulator : (family StdList element) . family StdList element)
107        values
108        (branch StdListEmpty .
109          lambda unrestricted accumulator : (family StdList element) . accumulator)
110        (branch StdListCons head tail induction .
111          lambda unrestricted accumulator : (family StdList element) .
112          induction (constructor StdList StdListCons element head accumulator)))
113      (constructor StdList StdListEmpty element))

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.