How to append object multiple time to an array
I try like this:
let heroes = ["abaddon","ember","gondar",etc].map { Hero(name: $0) }
So I don't need to declare all objects
Why not just
var heroes = [abaddon, ember, ..., wind]
If you want to append multiple objects, You could wrap them into an array themselves and use appendContentsOf.
heroes.append(contentsOf:[abaddon, ember, gondor])