3 lines
109 B
Text
3 lines
109 B
Text
def newCount := counts.fetch(v, fn { 0 }) + 1
|
|
counts[v] := newCount
|
|
maxCount := maxCount.max(newCount)
|