Skip to content

Instantly share code, notes, and snippets.

@Ben-G
Created June 21, 2016 22:57
Show Gist options
  • Save Ben-G/3b7cb0159f5fa69a688520a3e60e6469 to your computer and use it in GitHub Desktop.
Save Ben-G/3b7cb0159f5fa69a688520a3e60e6469 to your computer and use it in GitHub Desktop.
(Don't actually do this) Lift Tuples to IOUs as Workaround for Swift Bug SR-42
// Don't actually do this...
func lift<A, B, C>(input: (A, B, C)) -> (A!, B!, C!) {
return (Optional(input.0)!, Optional(input.1)!, Optional(input.2)!)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment