def cut.at

emerging-ezhttp@0.21.0.0 · src/qs.bend:346

import emerging-ezhttp@0.21.0.0/src/qs.bend as Qs
import Base

346# one character of the cut: the first `=` ends the text before it
347def cut.at(+c: Char, t: String, eq: Bool, rest: Unit -> Maybe<&2, Kv()>)
348  -> Maybe<&2, Kv()>:
349  match eq:
350    case True{}:
351      Some{("", t)}
352    case False{}:
353      cut.push(c, rest(Unit{}))

Uses (8)

Used by (1)