def take

yaml-for-bend@0.1.1.0 · parse.bend:130

import yaml-for-bend@0.1.1.0/parse.bend as Parse
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

130# Takes the next token.
131def take(ps: Ps) -> Ps:
132  match ps:
133    case Ps{toks, state, states, tags, out}:
134      Ps{List.drop(&2, T.Token, toks, 1n), state, states, tags, out}

Uses (3)

Used by (15)