Hi, I'm looking for an object that will process a list (or multiple inputs) of floats, and output the nth position of the highest value in the set.
[maximum] returns the highest value, but that's arbitrary, I need to know which position (or input) it came from. Any ideas? Thanks.
-
Object for comparing values/inputs?
-
Thanks David. A combination of [maximum] and [list-find] seems to be working.
would this be more direct I wonder?
-
@elcraydo Yes... that looks good.
I don't know if it is more direct or efficient.
It depends on whether you know the length of the list I suppose.
David. -
You might want to consider doing this with arrays instead of lists. [array maximum] will do exactly what you're looking for, and it's much more efficient than the equivalent list function.