def sel_step
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
50def sel_step(+avail: Bool, +c: Cand, +r: Sel) -> Sel:
51 match c:
52 case Cand{slot, dis, sw, hr}:
53 sel_step2(dis, sw, avail && at_limit(hr), slot, r)
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
50def sel_step(+avail: Bool, +c: Cand, +r: Sel) -> Sel:
51 match c:
52 case Cand{slot, dis, sw, hr}:
53 sel_step2(dis, sw, avail && at_limit(hr), slot, r)