def text.go

bolt@1.27.0.0 · src/syntax/lex.bend:324

import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import Base

324# the tokens' texts, back to back: the source
325def text.go(toks: List<&2, Tok>, acc: List<&2, String>) -> List<&2, String>:
326  match toks:
327    case Nil{}:
328      acc
329    case Con{Tok{k, t, l, c}, rest}:
330      text.go(rest, t <> acc)

Uses (3)

Used by (1)