Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var someInt = 3
- var anotherInt = 107
- let (var1Int, var2Int) = swapTwoInt(variableA: someInt, variableB: anotherInt)
- print("someInt is now \(var1Int), and anotherInt is now \(var2Int)")
Advertisement
Add Comment
Please, Sign In to add comment