def lines

ezmcp@0.1.0.0 · src/sse.bend:84

import ezmcp@0.1.0.0/src/sse.bend as Sse
import Base

84# every line of the stream, in order
85def lines(ls: List<&2, String>, text: Sse) -> Sse:
86  match ls:
87    case []:
88      text
89    case l <> rest:
90      lines(rest, line(text, unr(l)))

Uses (5)

Used by (1)