Scala: Seq, Map and Set as functions
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 articleTag 2 posts
Writing about Function.
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 articleMost programmers know how to define and use a function in JavaScript. For example, the following function displays an alert containing the string passed in as a parameter: How many…
Read article