79812872

Date: 2025-11-07 23:48:15
Score: 1
Natty:
Report link

Problem seems to be with parenthesis. Enclose inner expression in parenthesis, as shown below:

scala
map + (k -> (map.getOrElse(k, 0) + 1))

Other post that you mentioned had different problem. In that post, Int was used as type parameter, which is not the case here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rodrigo Reis