Split.find: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/split.bend as Split Lines 59-65 of bend-toon-codec@0.1.0.0/src/split.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/split.bend&start_line=59&end_line=65 import Base # Index of the first `target`, ignoring quotes, or `none()`. def find(+s: String, +target: U32, +i: U32) -> U32: match s: case SNil{}: none() case SCon{Chr{c}, t}: found(U32.is_eq(c, target), i, find(t, target, (i + 1 : U32))) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/split.bend&name=found https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/split.bend&name=none