def zst
import bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend as Genericimport Base
import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N
196# (x, x == 0)
197def zst(~T: Data, ~test: N.Test<T> -> Bool, +x: T) -> T & Bool:
198 (x, test(N.IsZero{x}))
Uses (4)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/src/math/generic:bit_length
- bend-collections-laws-crypto@1.0.0.0/src/math/generic:bit_length_go
- bend-collections-laws-crypto@1.0.0.0/src/math/generic:gcd_go
- bend-collections-laws-crypto@1.0.0.0/src/math/generic:gcd_pick
- bend-collections-laws-crypto@1.0.0.0/src/math/generic:inv_go
- …