Created
August 24, 2015 09:02
-
-
Save macbaszii/cfb10049b7d1aeaaf27f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func curriedAddition(a: Int)(b: Int) -> Int { | |
| return a + b | |
| } | |
| curriedAddition <^> Optional(2) <^> Optional(3) | |
| // => COMPILER ERROR: Value of optional type '(Int -> Int)? not unwrapped; did you mean to use '!' or '??' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment