def rm_pick

bend-collections-laws-math@1.0.0.0 · src/math/f64.bend:1108

import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X

1108def rm_pick(+s: Bool, +u: Nat, +b: W.U64, +r: W.U64, flip: Bool) -> F64:
1109  match flip:
1110    case True{}:
1111      round_w(Bool.not(s), u, X.sub(b, r))
1112    case False{}:
1113      round_w(s, u, r)

Uses (7)

Used by (3)