def best2

cswap-bend-cli@0.1.0.0 · swpick.bend:132

import cswap-bend-cli@0.1.0.0/swpick.bend as Swpick
import 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))

Uses (9)

Used by (1)