def form.split.field
import emerging-ezhttp@0.21.0.0/src/form.bend as Formimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
290# a field part onto the rest
291def form.split.field(name: String, value: String,
292 rest: List<&2, Part> & List<&1, Bytes.Bytes>)
293 -> List<&2, Part> & List<&1, Bytes.Bytes>:
294 (ps, fs) = rest
295 (Field{name, value} <> ps, fs)