def pick_f

bendtorch@1.3.0.0 · dtype.bend:301

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

301def pick_f(b: Bool, +x: F32, +y: F32) -> F32:
302  match b:
303    case True{}:
304      x
305    case False{}:
306      y

Uses (2)

Used by (2)