Advertisement

Sets

  • Elshad Karimov
Chapter
  • 30 Downloads

Abstract

It is an unordered collection (meaning you won't get the elements in the same order as you defined) of unique, non-nil elements. It must conform to the Hashable protocol. This means it has to provide a hashValue property. This is important because sets are unordered and hashValue is used to access the elements of the sets.

Copyright information

© Elshad Karimov 2020

Authors and Affiliations

  • Elshad Karimov
    • 1
  1. 1.New YorkUSA

Personalised recommendations