def value
import ezmcp@0.1.0.0/src/sse.bend as Sseimport Base
30# a data field's value: the text after `data:`, less one space
31def value(text: String) -> String:
32 match text:
33 case SNil{}:
34 SNil{}
35 case SCon{+h, +t}:
36 Bool.pick(String, Char.is_eq(h, ' '), t, SCon{h, t})