def text.go

emerging-ezjson@1.3.0.0 · src/lex.bend:74

import emerging-ezjson@1.3.0.0/src/lex.bend as Lex
import 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})

Uses (3)

Used by (1)