Answer Posted / Chakresh Kumar
listMap in Scala is a function that applies a provided function to each element of a List and creates a new List with the results. For example: val numbers = List(1, 2, 3); val squares = numbers.map(_ * _ * _) will create a new list [1, 8, 27].
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers