Source/Packages

Std.Foundation

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

325 lines52 declarations11.6 KiBSHA-256 3dcbd3fa87ff

def · lines 237–244

stdOptionIsSome

Full file
Does this option hold a value?
237def stdOptionIsSome =
238  (lambda erased element : Type 0 . unrestricted value : (family StdOption element) .
239    eliminate
240      StdOption
241      (lambda unrestricted current : (family StdOption element) . family StdBool)
242      value
243      (branch StdNone . constructor StdBool StdFalse)
244      (branch StdSome held . constructor StdBool StdTrue))

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.