Source/Packages

Std.Word

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

1,783 lines192 declarations64.2 KiBSHA-256 27bf8c3f30ee

def · lines 1094–1106

stdU16DecodeLEExact

Full file
1094def stdU16DecodeLEExact =
1095  (lambda unrestricted input : Bytes .
1096    (nat-eliminate
1097      (lambda unrestricted current : Nat . (family StdOption (family StdU16)))
1098      (constructor StdOption StdNone (family StdU16))
1099      (lambda unrestricted predecessor : Nat .
1100        (lambda unrestricted induction : (family StdOption (family StdU16)) .
1101          (constructor
1102            StdOption
1103            StdSome
1104            (family StdU16)
1105            (stdU16FromBytes (bytes-head input) (bytes-head (bytes-tail input))))))
1106      (naturalEqual (bytes-length input) (succ (succ zero)))))

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.