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…

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…