Generic.sum_go: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend as Generic Lines 118-125 of bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend&start_line=118&end_line=125 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N def sum_go(~T: Data, ~op: N.Op -> T, ~test: N.Test -> Bool, xs: List<&2, T>, acc: Maybe<&2, T>) -> Maybe<&2, T>: match xs acc: case Nil{} _: acc case Con{x, rest} None{}: None{} case Con{+x, rest} Some{+a}: sum_go(~T, ~op, ~test, rest, cadd(~T, ~op, ~test, a, x)) 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=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend&name=cadd https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/num.bend&name=Op https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/num.bend&name=Test