Recently I stumbled upon a piece of Scala code that might leave you puzzled. Before showing you the code, I need to say a few words about compiler options. Compiler options Getting into the…
Read article ↗Recently, Daniel Westheide wrote an interesting post about the abuse of the Option type in Scala. You can find it here. I couldn't agree more with Daniel. This short story is another…
Read article ↗Yesterday my mate asked me: "I have a List[String] and a Map[String, Int] and I want a List[Int] whose values come from the Map whose keys match the List[String] elements, maintaining the…
Read article ↗For this post, I'll consider the following simple case class unless otherwise specified: In this post: Common knowledge about case classes Not so common knowledge about case classes…
Read article ↗