def cut
import emerging-ezhttp@0.21.0.0/src/qs.bend as Qsimport 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))