I am trying to add multiple values ββfor one key in a dictionary.
In lens c, we can write this:
NSDictionary *mapping = @{@"B": @[@"Bear", @"Buffalo"]};
But in Swift, as we can write, I try so hard, but do not get access:
var animalsDic = ["B": "Bear","Ball", "C": "Cat","Camel" "D": "Dog", "E": "Emu"]
Can anyone help me out?
swift
Santo
source share