Summary

So far, we have looked at three loops: the for…in loop, the while loop, and the repeat-while loop. We will use the for…in loop again, but first we need to talk about collections. In the next chapter, we will focus on what are collections and how to use them when working with data. Make sure you fully understand loops, because we will build on them in the next chapter and throughout the book. Therefore, review as much as you need in order to make sure you feel that you are proficient in the topics contained in this chapter.

Get iOS 10 Programming for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.