get the index of the item with largest value in a coll?

prismspecs's icon

If I have a coll of blob areas, and I find the largest area in the coll, how can I return that blob index?

deerell's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Send "max" as a message to the coll, and it'll output max value and corresponding index.