Timeline for Count of words in a mutable Map
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28, 2015 at 21:59 | comment | added | t. fochtman | @HeeL, I've updated my answer to address your questions. | |
Jun 28, 2015 at 21:57 | history | edited | t. fochtman | CC BY-SA 3.0 |
addressing questions in the comments
|
Jun 28, 2015 at 19:06 | comment | added | HeeL | Thank you, I like your solution and that you get rid of mutable Map in it. I have a few questions about it. Did you introduce res0 val just to make the line shorter? The second thing is about return type of the function was not specified in my code. Is this a good practice to specify it always or only when the function is complicated to understand instantly? | |
Jun 28, 2015 at 18:57 | vote | accept | HeeL | ||
Jun 28, 2015 at 12:12 | history | answered | t. fochtman | CC BY-SA 3.0 |