var operations: Dictionary<String, Double> = [
"π" : Double.pi,
"e" : M_E
]
func performOperation(symbol: String){
if let constant = operations[symbol]{
accumulator = constant
}
}
var pac10teamRankings = Dictionary<String, Int>()
// is
var pac10teamRankings = [String:Int]()
pac10teamRankings = ["stanford":1, "Cal":10]
let ranking = pac10teamRankings["Ohio State"]// ranking의 타입은 Int? (nil)
for(key, value) in pac10teamRankings {
print("\(key) = \(value)")
}