I have the following code :
var TabActions: Dictionary<String, Array<Dictionary<String, String>>> = [:]
TabActions = ["EVENT1" : ["TARGET1" : "ACTION1"], ["TARGET2" : "ACTION2"]]
I want to add ["TARGET3" : "ACTION3"] to the list but I can't figure how to do this. I've tried :
TabActions["EVENT1"] = [["TARGET3" : "ACTION3"]]
but it replaces the value instead of adding it and all other attempts end up with an error
What would be the best syntax to do this ?
TabActionsshould betabActions- instances lower case - Classes/Struc Definition upper case