bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

argmin, argmax should take multiple columns #218

Open neilconway opened 13 years ago

neilconway commented 13 years ago

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.