A

Admin • 828.03K Points
Coach

Q. Which function returns the index of the first matching element?

  • (A) firstIndex(of:)
  • (B) indexOf()
  • (C) getIndex()
  • (D) find()
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`firstIndex(of:)` returns the index of the first match in a collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.