def cut

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

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

355# a string cut at its first `=`: the text before it and the text after it,
356# none when it holds no `=`
357def cut(s: String) -> Maybe<&2, Kv()>:
358  match s:
359    case SNil{}:
360      None{}
361    case SCon{+c, +t}:
362      cut.at(c, t, Char.is_eq(c, '='), _u => cut(t))

Uses (6)

Used by (2)