def fields.put
import emerging-ezhttp@0.21.0.0/src/qs.bend as Qsimport Base
377# one piece in front of the rest's fields, skipped when empty
378def fields.put(+piece: String, rest: List<&2, Kv()>, empty: Bool)
379 -> List<&2, Kv()>:
380 match empty:
381 case True{}:
382 rest
383 case False{}:
384 field(piece) <> rest