Source/Packages

Std.List

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

317 lines21 declarations13.5 KiBSHA-256 0d04bb5f90d2

def · lines 116–127

stdListMap

Full file
Every element transformed, in order.
116def stdListMap =
117  (lambda erased element : Type 0 .
118    erased target : Type 0 .
119    unrestricted transform : (pi unrestricted value : element . target) .
120    unrestricted values : (family StdList element) .
121    eliminate
122      StdList
123      (lambda unrestricted current : (family StdList element) . family StdList target)
124      values
125      (branch StdListEmpty . constructor StdList StdListEmpty target)
126      (branch StdListCons head tail induction .
127        constructor StdList StdListCons target (transform 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.