3 ms·
I assume you meant statically typed, rather than strongly typed. Swift has this: var airports: [String: String] = ["TYO": "Tokyo", "DUB": "Dublin"]
by pswenson 12y ago
I assume you meant statically typed, rather than strongly typed.
Swift has this: var airports: [String: String] = ["TYO": "Tokyo", "DUB": "Dublin"]
- exabrial 12y ago:D Thanks for the correction I like the swift example... Map<String, String> map = new HashMap<>(){"TYO": "Tokyo", "DUB": "Dublin"};