Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift iOS Programming for Kids

You're reading from   Swift iOS Programming for Kids Help your kids build simple and engaging applications with Swift 3.0

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781787120747
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Steffen D. Sommer Steffen D. Sommer
Author Profile Icon Steffen D. Sommer
Steffen D. Sommer
Jim Campagno Jim Campagno
Author Profile Icon Jim Campagno
Jim Campagno
Arrow right icon
View More author details
Toc

Collection types


All year, you've been dreaming of finally taking that family vacation to the moon. Marisa (your neighbor) went last year and it's all she ever talks about. After begging your parents to take you and your sister to the moon for a family vacation, you awoke to see this note slipped through your door.

Yes! We're going to the moon. On second thoughts, now that we're finally going, it does sound a little scary to be leaving everything behind for a full month. Also, we need to reply by writing Swift code, that doesn't seem too bad.

In the earlier chapters, we've learned that there are various types built into the Swift language:

let name = "Jim"
let age = 21

Here, name is a constant of the String type and age is a constant of the Int type. They have both been assigned values: name has been assigned the value Jim and age has been assigned the value 21. Let's get back to the note we received now. It's asking us to create a list. What we need to do is generate a list of values...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime