Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // two form of init of empty dictionary
- let emptyDictionary1 = [String:Int]()
- let emptyDictionary2 : [String : Int] = [:]
- // two form of init of array with two elements tuple
- let emptyArrayOfTuple1 : [(String , Int)] = []
- let emptyArrayOfTuple3 : [(name : String , score : Int)] = []
- // two form of init of array with two elements tuple
- let emptyArrayOfTuple2 : [(String , Int, Int)] = []
- let emptyArrayOfTuple4 : [(name : String , score : Int, age : Int)] = []
- // DictionaryLiteral
- var recordTimes1: DictionaryLiteral<String , Double> = [:]
- var recordTimes2: DictionaryLiteral<String , Double> = ["Florence Griffith-Joyner": 10.49,
- "Evelyn Ashford": 10.76,
- "Evelyn Ashford": 10.79,
- "Marlies Gohr": 10.81]
Add Comment
Please, Sign In to add comment