def Tests.odd

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

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

85def Tests.odd(~T: Data, ~test: N.Test<T> -> Bool, ~val: T -> Nat, +a: T) -> Type:
86  {test(N.Odd{a}) == Nat.is_eq(Nat.mod(val(a), 2n), 1n) : Bool}

Uses (5)

Used by (3)