def best2
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
132def best2(+cur: Maybe<&2, U32>, +others: List<&2, Cand>, +p: Pick) -> BestOut:
133 match cur p:
134 case None{} _:
135 BNote{"current-unavailable"}
136 case Some{c} Pick{s, h, False{}}:
137 BNote{"no-comparison"}
138 case Some{c} Pick{s, h, True{}}:
139 best3(Pick{s, h, True{}}, c, any_unknown(others))