Resources

I’m extending my break from Python to see how far I can go with Swift before I need a change of scenery again.

‘Documentation and API Reference’ under Xcode’s help bar is absolutely useful for further reading on any topics. I did not realise the benefits until I got to ‘Set’ even though it was introduced earlier in the book. There are actually several operations and examples listed there that are not in it.

I was on ‘Set’ and needed a solution to one of the problems. This came up when I Googled:

Screen Shot 2017-08-22 at 9.44.46 AM.png

It didn’t work for me so I searched the documentation and found the below:

Screen Shot 2017-08-22 at 9.46.43 AM.png

So, instead of myCities.isSupersetOf(yourCities), it should be myCities.isSuperset(of: yourCities).

I’m moving on to ‘Functions’ next. Wish me luck!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s