Lambda expressions can also be applied to collections or data structures. For applying to collection the methodmap()is used. Themap()is a high-ordered function in Scala using which we can transform values of the collection using the lambda expression. objectMyClass{defmain(args:Array[String]) ...