Sse.kind: def of bend-kit-llm@0.13.0.1 Import: import bend-kit-llm@0.13.0.1/sse.bend as Sse Lines 104-114 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=104&end_line=114 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # The kind of the field whose n-byte name starts at s: 1 data, 2 event, 3 id, 4 retry, 0 any other. def kind(+n: U32, a: Array, +s: U32) -> Array & U32: match n: case 2: kind.is(3, Bytes.at(a, "id", s)) case 4: kind.is(1, Bytes.at(a, "data", s)) case 5: kind.five(s, Bytes.at(a, "event", s)) case _: (a, 0) 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=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=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=at https://jend.leeeet.dev/definition.txt?path=bend-kit-llm@0.13.0.1/sse.bend&name=kind.five https://jend.leeeet.dev/definition.txt?path=bend-kit-llm@0.13.0.1/sse.bend&name=kind.is