R

Ravina • 3.96K Points
Extraordinary

Q. Which collection type in Swift does not allow duplicate values?

  • (A) Array
  • (B) Set
  • (C) Dictionary
  • (D) Tuple
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
A `Set` is an unordered collection that ensures all elements are unique.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.