def field.of

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

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

Uses (5)

Used by (1)