def rk.bar

cswap-bend-cli@0.1.0.0 · policy/pick.bend:80

import cswap-bend-cli@0.1.0.0/policy/pick.bend as Pick
import Base
import cswap-bend-cli@0.1.0.0/policy/rank.bend as R

80def rk.bar(+rk: Rk, +bar: Maybe<&2, Nat>) -> Rk:
81  match rk:
82    case Rk{t, cf, rm, ah0, best, ar, ars, thr, s}:
83      match s:
84        case R.Sel{active, b0, need, us, now, ms}:
85          Rk{t, cf, rm, ah0, best, ar, ars, thr, R.Sel{active, bar, need, us, now, ms}}

Uses (4)

Used by (2)