def plan.items

cswap-bend-cli@0.1.0.0 · fmt/yamlr.bend:195

import cswap-bend-cli@0.1.0.0/fmt/yamlr.bend as Yamlr
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

195def plan.items(es: List<&2, List<&2, Ln>>) -> Plan:
196  match es:
197    case Nil{}:
198      PRes{Done{Json.JNil{}}}
199    case Con{Con{Ln{n, +t}, body}, r}:
200      items.head(is_dash(t), n, t, body, r)
201    case Con{Nil{}, r}:
202      bad("empty sequence entry")

Uses (8)

Used by (1)