Source/Packages

Std.Byte

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

108 lines19 declarations3.5 KiBSHA-256 bd71181271d6

def · lines 75–82

byteShiftLeftTruncated

Full file
75def byteShiftLeftTruncated =
76  (lambda unrestricted value : Byte . unrestricted amount : Nat .
77    nat-eliminate
78      (lambda unrestricted current : Nat . Byte)
79      (byte 0)
80      (lambda unrestricted predecessor : Nat . unrestricted induction : Byte .
81        byte-shift-left value (nat-to-byte amount))
82      (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.