def Utf8.go

bend-kube-runtime@0.2.0.0 · src/utf8.bend:108

import bend-kube-runtime@0.2.0.0/src/utf8.bend as Utf8
import Base

108# Decodes bytes onto the front of acc (reversed), carrying the state.
109def Utf8.go(bs: List<&2, U32>, +st: Utf8, acc: String) -> Utf8 & String:
110  match bs:
111    case Nil{}:
112      (st, acc)
113    case Con{+b, t}:
114      Utf8.go(t, Utf8.next(st, b), Utf8.emit(st, b, acc))

Uses (8)

Used by (1)