Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created February 19, 2018 12:51
Show Gist options
  • Save vialyx/df6710c6a9db42aaa3c071ae52b1caba to your computer and use it in GitHub Desktop.
Save vialyx/df6710c6a9db42aaa3c071ae52b1caba to your computer and use it in GitHub Desktop.
var (latitude, longitude) = anonimusCoordinateTuple
print("latitude var: \(latitude)") // latitude var: 12.4567
print("longitude var: \(longitude)") // longitude var: 45.9087
// And small trick to change 2 var between them
(longitude, latitude) = anonimusCoordinateTuple
print("latitude var: \(latitude)") // latitude var: 45.9087
print("longitude var: \(longitude)") // longitude var: 12.4567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment