Skip to content

Instantly share code, notes, and snippets.

@balrajOla
Created June 5, 2019 06:09
Show Gist options
  • Save balrajOla/c7075ef40f652b2e079cc1dbd466a5c8 to your computer and use it in GitHub Desktop.
Save balrajOla/c7075ef40f652b2e079cc1dbd466a5c8 to your computer and use it in GitHub Desktop.
// Original source code:
@TupleBuilder
func build() -> (String, String, Int) {
"a"
"b"
1
}
// This code is interpreted exactly as if it were this code:
func build() -> (String, String, Int) {
let _a = "a"
let _b = "b"
let _c = 1
return TupleBuilder.buildBlock(_a, _b, _c)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment