def isqrt
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
361# the instance's integer square root (a hardware estimate and an exact
362# integer correction for U32 and U64)
363def isqrt(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +n: T) -> T:
364 op(N.Sqrt{n})