def fin
import ezmcp@0.1.0.0/src/sse.bend as Sseimport Base
92# the data the stream ends with: an unfinished event's, else the last one's
93def fin(text: Sse) -> String:
94 match text:
95 case Sse{cur, last}:
96 Maybe.default(&2, String, cur, last)