Issue: I am trying to pass each element of list to a function in Scala
Need to pass elements of myList to arg y in the add function, here x has a constant value which is 5
def add(x: Int, y: Int): Int = x + y
val myList = List(2,3,4)
Expected Output: 7 8 9