def Tests.is_zero

bend-collections-laws-crypto@1.0.0.0 · spec/math/instances.bend:88

import bend-collections-laws-crypto@1.0.0.0/spec/math/instances.bend as Instances
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N

88def Tests.is_zero(~T: Data, ~test: N.Test<T> -> Bool, ~val: T -> Nat, +a: T) -> Type:
89  {test(N.IsZero{a}) == Nat.is_eq(val(a), 0n) : Bool}

Uses (4)

Used by (1)