A

Admin • 802.91K Points
Coach

Q. Which function in Kotlin is used to iterate over a list?

  • (A) map()
  • (B) forEach()
  • (C) repeat()
  • (D) loop()
  • Correct Answer - Option(B)
  • Views: 3
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
forEach() is a standard function to iterate over collections in Kotlin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.