Source/Packages

Data.Bytes

packages/foundation/standard/src/Data/Bytes.alpha

1,218 lines172 declarations47.4 KiBSHA-256 beded7f8a171

def · lines 1204–1218

bytesDropLeadingZeroes

Full file
1204def bytesDropLeadingZeroes =
1205  (lambda unrestricted value : Bytes .
1206    bytes-eliminate
1207      (lambda unrestricted current : Bytes . Bytes)
1208      b""
1209      (lambda unrestricted head : Byte .
1210        unrestricted tail : Bytes .
1211        unrestricted induction : Bytes .
1212        nat-eliminate
1213          (lambda unrestricted headValue : Nat . Bytes)
1214          induction
1215          (lambda unrestricted predecessor : Nat . unrestricted keepInduction : Bytes .
1216            bytes-cons head tail)
1217          (byte-to-nat head))
1218      value)

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.