Source/Packages

Std.List

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

428 lines21 declarations14.7 KiBSHA-256 1d350bdfe159

def · lines 87–102

stdListAppend

Full file
The left list followed by the right one. The right list is SHARED, not copied: only the left spine is rebuilt.
87def stdListAppend =
88  (lambda erased element : Type 0 .
89    unrestricted left : (family StdList element) .
90    unrestricted right : (family StdList element) .
91    eliminate
92      StdList
93      (lambda unrestricted current : (family StdList element) . family StdList element)
94      left
95      (branch StdListEmpty . right)
96      (branch
97        StdListCons
98        head
99        tail
100        induction
101        .
102        constructor StdList StdListCons element head 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.