Created
May 31, 2016 16:10
-
-
Save skyebook/f33d50a268da2b674d5df645c1841db0 to your computer and use it in GitHub Desktop.
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
extension Array { | |
func objectsAtIndexPaths(indexPaths: [NSIndexPath]) -> [Element] { | |
return indexPaths.map {self[$0.row]} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment