Source/Packages

Std.Foundation

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

329 lines52 declarations12.3 KiBSHA-256 7818c29d5c7c

def · lines 254–264

stdResultValueOr

Full file
The value a result holds, or the supplied default.
254def stdResultValueOr =
255  (lambda erased errorType : Type 0 .
256    (lambda erased valueType : Type 0 .
257      (lambda unrestricted fallback : valueType .
258        (lambda unrestricted value : (family StdResult errorType valueType) .
259          (eliminate
260            StdResult
261            (lambda unrestricted current : (family StdResult errorType valueType) . valueType)
262            value
263            (branch StdFailure held . fallback)
264            (branch StdSuccess held . held))))))

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.