iOS Swift 数组 交换元素的两种方法

//1
swap(&arr[fromIndexPath.row], &arr[to.row])

//2
(arr[fromIndexPath.row],arr[to.row]) = (arr[to.row],arr[fromIndexPath.row])
原文地址:https://www.cnblogs.com/ficow/p/5777395.html