def field.of
import emerging-ezhttp@0.21.0.0/src/qs.bend as Qsimport Base
364# a field once it is cut: the name before its first `=` and the value after
365# it, or all name and an empty value when it has no `=`
366def field.of(m: Maybe<&2, Kv()>, whole: String) -> Kv():
367 match m:
368 case None{}:
369 (unquote.plus(whole), "")
370 case Some{(name, value)}:
371 (unquote.plus(name), unquote.plus(value))