Split.find_unq: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/split.bend as Split Lines 28-34 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=28&end_line=34 import Base # Index of the first `target` outside quotes, or `none()`. def find_unq(+s: String, +target: U32, +st: U32, +i: U32) -> U32: match s: case SNil{}: none() case SCon{Chr{c}, t}: found(U32.is_eq(st, 0) && U32.is_eq(c, target), i, find_unq(t, target, qnext(st, c), (i + 1 : U32))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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 https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/split.bend&name=qnext