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

Gold Challenge

You will often work with instances of Array via their indices. Consult the documentation to find a method on Array that will locate the index of "Fly hot air balloon to Fiji" in your bucketList. Beware: This method will return an Index? (i.e., an optional index). Unwrap that value and use it to compute the index that is two positions later in the array. Last, use this new index to find the String at that position within your bucketList.

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