A

Admin • 828.03K Points
Coach

Q. Which Kotlin function allows you to transform and return a new list?

  • (A) map()
  • (B) filter()
  • (C) forEach()
  • (D) take()
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
map() transforms a collection by applying a function to each element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.