Created
January 27, 2017 07:49
-
-
Save twof/f2618f5d4db6705a683fc3b72cc138a7 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
| func swapTwoValues<T>(_ a: inout T, _ b: inout T) { | |
| let temporaryA = a | |
| a = b | |
| b = temporaryA | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment