Scenario: I want to select the tuple from table t that has the smallest x value; if multiple tuples have the same x minimal value, I want the tuple with the smallest y value. This should be expressible via argmin:
result <= t.argmin([], [:x, :y])
but argmin currently only allows a single column for its second operand.
Scenario: I want to select the tuple from table
t
that has the smallestx
value; if multiple tuples have the samex
minimal value, I want the tuple with the smallesty
value. This should be expressible viaargmin
:but
argmin
currently only allows a single column for its second operand.