O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Silver Challenge

In this chapter, you used methods like union(_:) and intersection(_:) to create new sets. Sometimes, however, you may not want to create new instances, but rather to modify the existing instances in place. Look through the documentation and find the appropriate methods on the Set type. Rework the examples in the chapter for union(_:) and intersection(_:) to use these methods.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required