Source/Packages

Std.List

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

428 lines21 declarations14.7 KiBSHA-256 1d350bdfe159

def · lines 294–313

stdListDrop

Full file
Everything after the first `count` elements.
294def stdListDrop =
295  (lambda erased element : Type 0 .
296    unrestricted count : Nat .
297    unrestricted values : (family StdList element) .
298    app
299      (nat-eliminate
300        (lambda unrestricted current : Nat . pi unrestricted remaining : (family StdList element) .
301          family StdList element)
302        (lambda unrestricted remaining : (family StdList element) . remaining)
303        (lambda unrestricted predecessor : Nat .
304          unrestricted induction : (pi unrestricted remaining : (family StdList element) . family StdList element) .
305          unrestricted remaining : (family StdList element) .
306          eliminate
307            StdList
308            (lambda unrestricted current : (family StdList element) . family StdList element)
309            remaining
310            (branch StdListEmpty . constructor StdList StdListEmpty element)
311            (branch StdListCons head tail tailInduction . induction tail))
312        count)
313      values)

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.