Source/Packages

Std.List

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

306 lines19 declarations12.2 KiBSHA-256 6cdb3b134c6e

def · lines 77–85

stdListIsEmpty

Full file
Is the list empty?
77def stdListIsEmpty =
78  (lambda erased element : Type 0 .
79    (lambda unrestricted values : (family StdList element) .
80      (eliminate
81        StdList
82        (lambda unrestricted current : (family StdList element) . (family StdBool))
83        values
84        (branch StdListEmpty . (constructor StdBool StdTrue))
85        (branch StdListCons head tail induction . (constructor StdBool StdFalse)))))

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.