Skip to content

Instantly share code, notes, and snippets.

@macbaszii
Created August 24, 2015 09:02
Show Gist options
  • Select an option

  • Save macbaszii/cfb10049b7d1aeaaf27f to your computer and use it in GitHub Desktop.

Select an option

Save macbaszii/cfb10049b7d1aeaaf27f to your computer and use it in GitHub Desktop.
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