Source/Packages

Std.List

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

428 lines21 declarations14.7 KiBSHA-256 1d350bdfe159

def · lines 105–137

stdListReverse

Full file
The list in the opposite order.
105def stdListReverse =
106  (lambda erased element : Type 0 . unrestricted values : (family StdList element) .
107    app
108      (eliminate
109        StdList
110        (lambda unrestricted current : (family StdList element) .
111          pi unrestricted accumulator : (family StdList element) .
112          family StdList element)
113        values
114        (branch
115          StdListEmpty
116          .
117          lambda
118          unrestricted
119          accumulator
120          :
121          (family StdList element)
122          .
123          accumulator)
124        (branch
125          StdListCons
126          head
127          tail
128          induction
129          .
130          lambda
131          unrestricted
132          accumulator
133          :
134          (family StdList element)
135          .
136          induction (constructor StdList StdListCons element head accumulator)))
137      (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.