def Flat.rowarg.pick

bend-tensors@0.0.0.2 · bend_tensors.bend:2045

import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensors
import Base

2045# the index of the largest cell of a row segment; the first wins ties
2046def Flat.rowarg.pick(c: Bool, +i: U32, +x: F32, +j: U32, +y: F32) -> U32 & F32:
2047  match c:
2048    case True{}:
2049      (i, x)
2050    case False{}:
2051      (j, y)

Uses (5)

Used by (1)