Collection Types in Swift. Sets

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 2

  • @Yannemal
    @Yannemal Před 2 lety +1

    I was surprised set looks so much like an array you had better declare it so Swift wont assume its an array if you dont. Intersection is a neat feature !

    • @Exodai-Academy
      @Exodai-Academy  Před 2 lety +1

      Yeah that is why you need the Set syntax otherwise Swift is going to use it as a array. I started implementing Sets I =n the new API for Devscorch 4 and it makes it so much easier now