Source/Packages

Std.Byte

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

108 lines19 declarations3.5 KiBSHA-256 bd71181271d6

def · lines 66–73

byteShiftRight

Full file
66def byteShiftRight =
67  (lambda unrestricted value : Byte . unrestricted amount : Nat .
68    nat-eliminate
69      (lambda unrestricted current : Nat . Byte)
70      (byte 0)
71      (lambda unrestricted predecessor : Nat . unrestricted induction : Byte .
72        byte-shift-right value (nat-to-byte amount))
73      (nat-less-than amount byteNaturalEight))

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.