CopyPastor

Detecting plagiarism made easy.

Score: 0.9073825022415333; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2025-11-07
by Rodrigo Reis

Original Post

Original - Posted on 2016-07-27
by justAbit



            
Present in both answers; Present only in the new answer; Present only in the old answer;

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.
Problem seems to be with parenthesis. Enclose inner expression in parenthesis, as shown below:
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.

        
Present in both answers; Present only in the new answer; Present only in the old answer;