def items.head

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

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

188def items.head(dash: Bool, +n: Nat, +t: String, body: List<&2, Ln>, r: List<&2, List<&2, Ln>>) -> Plan:
189  match dash:
190    case True{}:
191      PItems{item.block(n, t, item.rest(item.text(t)), body), r}
192    case False{}:
193      bad("expected '- ' to start a sequence item")

Uses (10)

Used by (1)