Created
June 21, 2016 22:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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