0
Swift arrays: making one empty
How do you make an array empty. I keep typing var xyz = [] and the compiler gives me an error when ran. It says "whitespace"
1 Answer
0
I got it.
var xyz = [String]()
or for ints
var xyz = [Ints]()
How do you make an array empty. I keep typing var xyz = [] and the compiler gives me an error when ran. It says "whitespace"