def collect.put
import bend-kit-migrate@0.3.0.0/migrate.bend as Migrateimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-json@0.7.0.0/json.bend as Json
425def collect.put(acc: Result<&1, &1, Error, Slots>, k: Bytes.Bytes, v: Json.Val) -> Result<&1, &1, Error, Slots>:
426 match acc:
427 case Fail{e}:
428 Fail{e}
429 case Done{s}:
430 Slots.key(Tag.of(k), scalar(v), s)