def scoped_chain
import cswap-bend-cli@0.1.0.0/daemon/rows.bend as Rowsimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
80def scoped_chain(+items: Json.Json) -> List<&2, T.Scoped>:
81 match items:
82 case Json.JCons{h, t}:
83 scoped_push(scoped_one(h), scoped_chain(t))
84 case _:
85 []