Contents

Swift

https://docs.swift.org/swift-book/GuidedTour/GuidedTour.html

let myConst = 42
var myVariable = 1

// string interpolation
var myStr = "My name is \(name)"
var myMultilineStr = """
I say "My name is \(name)"
"""

Arrays and dictionaries

var myArray = ["a", "b"]
var myDicstionary = [
  "name": "Duke",
]
// define empty arrays
let emptyArray: [String] = []
let emptyDictionary: [String: Float] = [:]
}