The following is causing my cpu to die and the program to freeze
var animals = ["B":["Bear", "Black Swan", "Buffalo"], "C": ["Camel", "Cockatoo"], "D": ["Dog", "Donkey"], "E": ["Emu"], "G": ["Giraffe", "Greater Rhea"], "H": ["Hippopotamus", "Horse"], "K": ["Koala"], "L": ["Lion", "Llama"], "M": ["Manatus", "Meerkat"], "P": ["Panda", "Peacock", "Pig", "Platypus", "Polar Bear"], "R": ["Rhinoceros"], "S": ["Seagull"], "T": ["Tasmania Devil"], "W": ["Whale", "Whale Shark", "Wombat"]]
Taking off the array definition from key elements associated with a single Animal does work fine, however, I don't know what is going on?
var animals = ["B":["Bear", "Black Swan", "Buffalo"], "C": ["Camel", "Cockatoo"], "D": ["Dog", "Donkey"], "E": "Emu", "G": ["Giraffe", "Greater Rhea"], "H": ["Hippopotamus", "Horse"], "K": "Koala", "L": ["Lion", "Llama"], "M": ["Manatus", "Meerkat"], "P": ["Panda", "Peacock", "Pig", "Platypus", "Polar Bear"], "R": "Rhinoceros", "S": "Seagull", "T": ["Tasmania Devil"], "W": ["Whale", "Whale Shark", "Wombat"]]
May be try the above code in playgrounds to see the effect.