Last active
April 10, 2018 01:42
-
-
Save yogeshmanghnani/9a23f9e8560a9f44d43af7b67f5da5a7 to your computer and use it in GitHub Desktop.
This is a demonstration of Movable array using conditional conformances
This file contains 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: Movable where Element: Movable { | |
func move() { | |
for item in self { | |
item.move() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment