def Sp.colon

bendtorch-load@1.3.0.0 · main.bend:341

import bendtorch-load@1.3.0.0/main.bend as BendtorchLoad
import Base

341# a colon makes the last string the entry's name (depth 1) or the field's (depth 2)
342def Sp.colon(d1: Bool, d2: Bool, ps: Ps) -> Ps:
343  match d1 d2 ps:
344    case True{} _ Ps{d, c, +p, n, f, dt, sh, of, ns, rs, bad}: Ps{d, True{}, p, p, f, dt, sh, of, ns, rs, bad}
345    case _ True{} Ps{d, c, +p, n, f, dt, sh, of, ns, rs, bad}: Ps{d, True{}, p, n, p, dt, sh, of, ns, rs, bad}
346    case _ _ Ps{d, c, p, n, f, dt, sh, of, ns, rs, bad}: Ps{d, True{}, p, n, f, dt, sh, of, ns, rs, bad}

Uses (2)

Used by (1)