def value

ezmcp@0.1.0.0 · src/sse.bend:30

import ezmcp@0.1.0.0/src/sse.bend as Sse
import 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})

Uses (4)

Used by (1)