def ToBytes.be

bend-collections-laws-math@1.0.0.0 · spec/math/fixed.bend:226

import bend-collections-laws-math@1.0.0.0/spec/math/fixed.bend as Fixed
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C

226def ToBytes.be(~T: Data, ~val: T -> Nat, ~f: @+x: T -> List<&2, U32>, +nb: Nat, +a: T) -> Type:
227  {nats(f(a)) == C.reverse(Nat, le_digits(nb, val(a))) : List<&2, Nat>}

Uses (6)

Used by (4)