def text.go
import emerging-ezjson@1.3.0.0/src/lex.bend as Leximport Base
74# the buffer is reversed, so consing each head onto the front yields the text
75def text.go(buf: List<&2, Char>, acc: String) -> String:
76 match buf:
77 case Nil{}:
78 acc
79 case Con{h, t}:
80 text.go(t, SCon{h, acc})