iOS Swift 数组 交换元素的两种方法
//1 swap(&arr[fromIndexPath.row], &arr[to.row]) //2 (arr[fromIndexPath.row],arr[to.row]) = (arr[to.row],arr[fromIndexPath.row])
Stay hungry,stay foolish.
//1 swap(&arr[fromIndexPath.row], &arr[to.row]) //2 (arr[fromIndexPath.row],arr[to.row]) = (arr[to.row],arr[fromIndexPath.row])