def lex.trim.nl

emerging-eztoml@0.9.0.0 · main.bend:3478

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

3478# a line feed is trimmed; any other character is the first of the string
3479def lex.trim.nl(nl: Bool, st: St, cc: Char) -> St:
3480  match nl:
3481    case True{}:
3482      st.lex(st, LStr{})
3483    case False{}:
3484      st.hold(st.lex(st, LStr{}), LStr{}, cc)

Uses (6)

Used by (1)