Input.utf8.go: def of bend-kit-camber@0.15.0.1 Import: import bend-kit-camber@0.15.0.1/input.bend as Input Lines 94-103 of bend-kit-camber@0.15.0.1/input.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-camber@0.15.0.1/input.bend&start_line=94&end_line=103 import Base import bend-kit-router@0.2.0.0/target.bend as Target import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes def utf8.go(fuel: Nat, pair: Array & Maybe<&2, Target.Utf>, +index: U32) -> Array & Maybe<&2, String>: match fuel: case 0n: (bytes, state) = pair (bytes, Target.utf.finish(state)) case 1n+rest: (bytes, state) = pair match state: case None{}: (bytes, None{}) case Some{state}: utf8.go(rest, utf8.step(Bytes.peek(bytes, index), state), (index + 1 : U32)) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=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=bend-kit-bytes@0.3.3.0/bytes.bend&name=peek https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/input.bend&name=utf8.step https://jend.leeeet.dev/definition.txt?path=bend-kit-router@0.2.0.0/target.bend&name=Utf https://jend.leeeet.dev/definition.txt?path=bend-kit-router@0.2.0.0/target.bend&name=utf.finish