~/bend-docscommunity

src/rchars.bend checks

raw source on the hub · import bolt@1.66.0.0/src/rchars.bend as Rchars

src/rchars: a buffer of chars read one at a time and consed on the front (the last read first) as the String it spells, in one pass: each char goes onto the String built so far, with no reversed list in between (the shape fromrev, U016, reports). Pure.

1 import
import Base

Definitions

def onto source · line 8 · raw

@buf:List<&2, Char> -> @acc:String -> String

the buffer's chars, first read first, then acc

def text source · line 16 · raw

@buf:List<&2, Char> -> String

the buffer's chars, first read first