max_by_key
iacore opened this issue · comments
iacore commented
A commonly used operation is "keyed max".
Example: (cubes --> reduce(if it.accu.x < it.elem.x: it.accu else: it.elem))
I propose (cubes --> maxBy(it.x))
or (cubes --> max(it.x))
Michael Schulte commented
not sure if that can be done here.
I know it can be done - for instance in scala - but are there any examples of other nim
libraries having this "commonly used operation" implemented?