Is there a function in scala collections to find the maximum number of occurrences of a value in a list,
Let's say I have a list
L = List("A","B","B","E","B","E","B","B","C","E","B")
output: "B".
I can write a module to calculate this, but I would expect that there should already be a scala "way" or scala function for this. Thank!
source
share