Last active
October 17, 2015 05:11
-
-
Save lonelytango/d2f1831ce4c3a50f4229 to your computer and use it in GitHub Desktop.
Exchange items in swift array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let listItem = list.removeAtIndex(fromIndex) | |
list.insert(listItem, atIndex: toIndex) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment