Skip to content

Instantly share code, notes, and snippets.

@yossan
Created October 4, 2017 15:08
Show Gist options
  • Save yossan/5f84c4b3551cdef5679cee4638303721 to your computer and use it in GitHub Desktop.
Save yossan/5f84c4b3551cdef5679cee4638303721 to your computer and use it in GitHub Desktop.
Getting value with label from a labeled tuple
func getTupple() -> (first: Int, secound: Int) {
return (0, 1)
}
//Gets value with label
let f = getTupple().first
print(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment