def best4
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
116def best4(+wins: Bool, +s: String, +unknown: Bool, +exhausted: Bool) -> BestOut:
117 match wins unknown exhausted:
118 case True{} _ _:
119 BPick{s}
120 case False{} True{} _:
121 BNote{"incomplete-comparison"}
122 case False{} False{} True{}:
123 BNote{"exhausted"}
124 case False{} False{} False{}:
125 BNote{"stay"}