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
Only need to make (names.count/2) passes through the array. No need to declare temporary variable, when doing the swap...it's implicit.
var names:[String] = ["Apple", "Microsoft", "Sony", "Lenovo", "Asus"] let count = names.count for i in 0..