RosettaCodeData/Task/Averages-Mode/E/averages-mode-3.e

4 lines
109 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
def newCount := counts.fetch(v, fn { 0 }) + 1
counts[v] := newCount
maxCount := maxCount.max(newCount)