def field.at
import bend-kit-llm@0.13.0.1/sse.bend as Sseimport Base
150# r holds the byte after the colon at c. The value starts after the colon and one space, if there is one.
151def field.at(+s: U32, +c: U32, +e: U32, +len: U32, st: St, r: Array<U32> & U32) -> Array<U32> & St:
152 (a, +b) = r
153 +v = Bool.pick(U32, U32.is_eq(c, e), e, Bool.pick(U32, Bool.and(U32.is_lt((c + 1 : U32), e), U32.is_eq(b, 32)), (c + 2 : U32), (c + 1 : U32)))
154 field.set(len, v, e, st, kind((c - s : U32), a, s))