Tag: Arrays

Ranges in Swift

You’ve probably used ranges in loops, without knowing it, but ranges are really a type in Swift. Have you ever thought about ranges and all their power? I’ll show you a few things you might want to know about Swift ranges. I’ve put a… Continue Reading “Ranges in Swift”

Swift Tutorial: How to Use an Array in Swift

[Updated to Swift 2.0 9/15/15 SJL] Note: this is a Swift 2.0 version. You can find the Swift 3.0 Version of this tutorial here The most important collection type is arguably the array. Arrays in Swift are simple to understand, but have a quite… Continue Reading “Swift Tutorial: How to Use an Array in Swift”