argmax

How can I extend Scala collections with an argmax method?

I would like to add to all collections where it makes sense, an argMax method. How to do it? Use implicits? ...