Source/Packages

Std.Codec

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

221 lines16 declarations8.7 KiBSHA-256 660b0bd459e5

def · lines 212–221

stdDecodedValueOr

Full file
The decoded value, or a default when the input ended too soon.
212def stdDecodedValueOr =
213  (lambda erased valueType : Type 0 .
214    (lambda unrestricted fallback : valueType .
215      (lambda unrestricted decoded : (family StdDecoded valueType) .
216        (eliminate
217          StdDecoded
218          (lambda unrestricted current : (family StdDecoded valueType) . valueType)
219          decoded
220          (branch StdDecodedValue item rest . item)
221          (branch StdDecodedTruncated . fallback)))))

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.