I've learnt Scala for 1,5 months at the university - what I had is: collections, pattern matching, functions on collections but my question is: what does really that underscore mean? I saw you guys using it almost everywhere and I don't know how to read it to be honest. For example:
val list1 = List(1,2,3,4,5)
list1.map(_ * 2) or list1.map(n => n*2)
what's the difference there? What could be hidden under that underscore symbol?
I saw you guys also using almost always in reduceLeft(_ + _)
something like this - how could I replace that to see, what is hidden under that?
I also have question if you recommend that page: www.scala-exercises.org to practice and learn Scala? I can't create any exercises myself and would like to practice more exercise than I get on lessons.