def better

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

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

Uses (6)

Used by (1)