Source/Packages

Std.List

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

317 lines21 declarations13.5 KiBSHA-256 0d04bb5f90d2

def · lines 225–244

stdListDrop

Full file
Everything after the first `count` elements.
225def stdListDrop =
226  (lambda erased element : Type 0 .
227    unrestricted count : Nat .
228    unrestricted values : (family StdList element) .
229    app
230      (nat-eliminate
231        (lambda unrestricted current : Nat .
232          pi unrestricted remaining : (family StdList element) . family StdList element)
233        (lambda unrestricted remaining : (family StdList element) . remaining)
234        (lambda unrestricted predecessor : Nat .
235          unrestricted induction : (pi unrestricted remaining : (family StdList element) . family StdList element) .
236          unrestricted remaining : (family StdList element) .
237          eliminate
238            StdList
239            (lambda unrestricted current : (family StdList element) . family StdList element)
240            remaining
241            (branch StdListEmpty . constructor StdList StdListEmpty element)
242            (branch StdListCons head tail tailInduction . induction tail))
243        count)
244      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.