def better
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
86def better(+found: Bool, +h: U32, +cur: Pick) -> Bool:
87 match cur:
88 case Pick{s, ch, f}:
89 Bool.not(f) || U32.is_gt(h, ch)
import cswap-bend-cli@0.1.0.0/swpick.bend as Swpickimport Base
86def better(+found: Bool, +h: U32, +cur: Pick) -> Bool:
87 match cur:
88 case Pick{s, ch, f}:
89 Bool.not(f) || U32.is_gt(h, ch)