def fields.put

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

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

Uses (5)

Used by (1)