def strat_of

cswap-bend-cli@0.1.0.0 · profile.bend:220

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base
import cswap-bend-cli@0.1.0.0/policy/safe.bend as SF

220# `best` keeps the engine strategy of the settings (best or consume-first);
221# any other strategy replaces it.
222def strat_of(+algo: SF.Algo, +st: String) -> String:
223  match algo:
224    case SF.ABest{}:
225      st
226    case o:
227      SF.name(o)

Uses (3)

Used by (1)