Scala – List(“a”,”b”).map(fn) versus map(fn, List(“a”,”b”)
From Scala’s site, there is an example of reimplementing method map for List, and the usage of it is as below
From Scala’s site, there is an example of reimplementing method map for List, and the usage of it is as below