def u64_from_le

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/fixbytes.bend:418

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes.bend as Fixbytes
import Base
import bend-collections-laws-math@1.0.0.0/spec/math/generic.bend as SG
import bend-collections-laws-math@1.0.0.0/spec/math/fixed.bend as SF
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU
import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as F

418def u64_from_le(bs: List<&2, U32>) -> SF.FromBytes.le(~WU.U64, ~SG.u64_val, ~F.u64_from_bytes_le, 8n, bs):
419  match bs:
420    case Nil{}:
421      {==}
422    case Con{+x0, t}:
423      gle1(x0, t)

Uses (7)

Used by (1)