var persons = [Dictionary<String, String>()]
println(persons.count)
prints 1
. I see that there is an empty dictionary inside the array when it is initialized but is there a way to avoid that and having 0 elements instead of 1? Later I need to be able to do:
persons.append(["firstName": "Foo", "lastName": "Bar"])
Any ideas?