Format.is_same.go: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/format.bend as Format Lines 303-312 of bend-lint-rules@0.2.0.0/layout/format.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&start_line=303&end_line=312 import Base # Base's String.eq is not tail-recursive, so long text would overflow the stack; is_same is. # ok: whether the characters so far were the same. def is_same.go(a: String, b: String, ok: Bool) -> Bool: match a b ok: case SCon{x, xs} SCon{y, ys} True{}: is_same.go(xs, ys, Char.is_eq(x, y)) case SNil{} SNil{} done: done case _ _ _: False{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String