I have a swift array "Monthdata" that I want to append every second value in my months array.
var monthData = []
let months = ["Jul 12","Aug 12","Sep 12","Oct 12"]
for month in months {
self.monthData.append(month)
}
So basically I the monthData array to look like:
["Aug 12","Oct 12"]