def slot_shape

cli@0.2.0.0 · cli.bend:7080

import cli@0.2.0.0/cli.bend as Cli
import Base

7080def slot_shape(found: Maybe<&2, Slot>) -> String:
7081  match found:
7082    case Some{Slot{k, hidden, required, many, rest, ph, comp}}:
7083      String.concat([Nat.show(k), " ", Bool.pick(String, rest, "1", "0")])
7084    case None{}: "0 0"

Uses (7)

Used by (1)