I have an array and want to swap two of its elements, by index.
// Initialize the Array var arr = ["one", "two", "three", "four", "five"] // Swap elements at index: 2 and 3 swap(&arr[2], &arr[3]) print(arr)
* Please let us know about anything: issues/feature request/suggestions......And we'll do our best to get back to you asap! :)
Or just post your issue on iSwift's Official Issue Tracker