Functional Programming in Scala (2) — The Map functionThe scala map function converts one collection A to another B by applying a function to every element in A .Oct 14, 20181Oct 14, 20181