def gate_of

cswap-bend-cli@0.1.0.0 · cliswitch.bend:87

import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitch
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

87def gate_of(strategy: Maybe<&2, String>, model: Maybe<&2, String>, +cfg: Json.Json) -> Gate:
88  match strategy:
89    case None{}:
90      Gate{[], ""}
91    case Some{s}:
92      gate_model(model, cfg)

Uses (6)

Used by (1)