Sse.colon: def of bend-kit-llm@0.13.0.1 Import: import bend-kit-llm@0.13.0.1/sse.bend as Sse Lines 60-72 of bend-kit-llm@0.13.0.1/sse.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-llm@0.13.0.1/sse.bend&start_line=60&end_line=72 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # The first colon at or after i, or the line's end. f counts the bytes from i to the line's end; r holds byte i. def colon(f: Nat, r: Array & U32, +i: U32) -> Array & U32: match f: case 0n: (a, c) = r (a, i) case 1n+p: (a, +c) = r match c: case 58: (a, i) case _: colon(p, Bytes.peek(a, (i + 1 : U32)), (i + 1 : U32)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma 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=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=peek