Generic.bnx2: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Generic Lines 234-239 of bend-collections-laws-math@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/math/generic.bend&start_line=234&end_line=239 import Base import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N def bnx2(~T: Data, ~op: N.Op -> T, ~test: N.Test -> Bool, +a: T, +b: T, less: Bool) -> T & (T & (Bool & Bool)): match less: case True{}: (b, zsm(~T, ~test, b, op(N.Sub{a, b}))) case False{}: (a, zsm(~T, ~test, a, op(N.Sub{b, a}))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/generic.bend&name=zsm https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=Op https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=Test