A

Admin • 833K Points
Coach

Q. What is returned by the 'filter' function in Kotlin?

  • (A) A new collection
  • (B) A string
  • (C) A boolean
  • (D) The original list
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

filter() returns a new list that contains only elements matching a given condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.