Quiz Yourself: Processing Collections: Enum and Stream

Quiz yourself on Enum and Stream.

1

What will be the output of the following code?

list = [9,19,29,39]
Enum.map(list, &(&1*2 + 10))
A)

[38, 58, 78, 98]

B)

[28, 48, 68, 88]

C)

[29, 39, 49, 59]

D)

[18, 38, 58, 78]

Question 1 of 40 attempted

Get hands-on with 1200+ tech skills courses.