def chars

bolt@1.27.0.0 · src/lsp/frame.bend:298

import bolt@1.27.0.0/src/lsp/frame.bend as Frame
import Base

298# bytes as chars, one each (for the ASCII header)
299def chars(bs: List<&2, U32>, acc: List<&2, Char>) -> List<&2, Char>:
300  match bs:
301    case Nil{}:
302      acc
303    case Con{b, t}:
304      chars(t, Char.from_u32(b) <> acc)

Uses (4)

Used by (1)