Lambda using HOF examples

Report a typo

Choose the appropriate pairs for lambda and its implementation for the following input:

List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)

Match the items from left and right columns
.map(_.toString).foldLeft("numbers: ")(_+_)
.filter(_ % 2 == 0)
.map(_ * 10).filter(_ <= 50)
.zipWithIndex.filter(_._2 == 5).map(_._1)
List(5)
numbers: 0123456789
List(0, 10, 20, 30, 40, 50)
List(0, 2, 4, 6, 8)
___

Create a free account to access the full topic