I saw some code like this. From REPL test, it looks like "/:" iterates through chars and call incr repeatedly. But I can't find any document for this syntax. What does /: syntax mean here?
val chars = List('a','b')
def incr(acc:Map[Char, Int], c:Char) = {
val count = (acc get c).getOrElse(0) + 1
acc + ((c, count))
}
(Map[Char,Int]() /: chars)(incr)