I have array and need to reverse it without Array.reverse method, only with a for loop.
Array.reverse
for
var names:[String] = [\"Apple\", \"Microsof
Ignoring checks for emptiness..
var names:[String] = ["Apple", "Microsoft", "Sony", "Lenovo", "Asus"] var reversedNames: [String] reversedNames = [] for name in names { reversedNames.insert((name), atIndex:0) }