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"

10th Dec 2018, 9:02 PM
Mason Taylor
Mason Taylor - avatar
1 ответ
0
I got it. var xyz = [String]() or for ints var xyz = [Ints]()
10th Dec 2018, 10:23 PM
Mason Taylor
Mason Taylor - avatar