def rank.ctx

cswap-bend-cli@0.1.0.0 · policy/decide.bend:224

import cswap-bend-cli@0.1.0.0/policy/decide.bend as Decide
import Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
import cswap-bend-cli@0.1.0.0/policy/rank.bend as R
import cswap-bend-cli@0.1.0.0/policy/pick.bend as K

224def rank.ctx(+t: T.Trigger, +ah: Maybe<&2, Nat>, +m: R.Meas, +ar: Maybe<&2, Nat>, +ars: Maybe<&2, Nat>, +active: Nat, +us: List<&2, T.Usage>, +now: Nat, +cfg: T.Config) -> K.Rk:
225  match cfg:
226    case T.Config{thr, ms, stg, iv, cd, hy, ttl, ut, ia}:
227      K.rk.mk(t, ah, R.all_above(m, ah, thr), meas.best(m), ar, ars, thr, hy, K.strat.cf(stg), active, None{}, us, now, ms)

Uses (12)

Used by (1)