def Flat.rowarg.pick
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport 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)