Skip to content

Instantly share code, notes, and snippets.

View dylankbuckley's full-sized avatar

Dylan Buckley dylankbuckley

  • London
View GitHub Profile
@dylankbuckley
dylankbuckley / LearnSwiftPartTwo.playground
Created December 12, 2016 22:14
Learn Swift 3.0 & Xcode 8 (Part 2 - Swift Basics)
// For Loop
for index in 1...5 {
print("\(index) times 2 is \(index * 2)")
}
// Array
let myAnimals = ["Fluffy", "Stevey", "Rabbit", "Doggy"]
let randomNumbers = [1, 2, 3, 4, 5]
@dylankbuckley
dylankbuckley / LearnSwiftPartOne.playground
Created September 18, 2016 19:05
Learn Swift 3.0 & Xcode 8 (Part 1 - Swift Basics)
// Basic Operators
35 + 98
62 - 14
50 / 10
463 * 173
// Types
var age: Int = 21 // Int = Integer = Any whole number
var milesCanRun: Double = 0.75 // Double = Float = Decimal Number