Generic.sign: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/math/generic.bend as Generic Lines 114-116 of bend-collections@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/math/generic.bend&start_line=114&end_line=116 import Base import bend-collections@1.0.0.0/src/math/num.bend as N # 1 above zero, -1 below, x itself otherwise (0, -0.0, NaN) def sign(~T: Data, ~op: N.Op -> T, ~test: N.Test -> Bool, +x: T) -> T: sign_above(~T, ~op, ~test, x, test(N.Lt{op(N.ZeroOp{}), x})) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/generic.bend&name=sign_above https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/num.bend&name=Op https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/num.bend&name=Test