Slide 16
Slide 16 text
ARRAYS
let recipes:[String] = ["Egg Benedict", "Mushroom Risotto", "Hamburger"]
let count:[Int] = [3, 4, 19, 30]
// Type Inference
let recipes = ["Egg Benedict", "Mushroom Risotto", "Hamburger"]
let count = [3, 4, 19, 30]
// Type Safety - it can only hold elements of the same type
let recipes:[String] = ["Egg Benedict", "Mushroom Risotto", "Hamburger", 3]
// Error because 3 is an Integer