Created
February 17, 2015 14:40
-
-
Save polynomial/42bd9a8b07a8845bf634 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
scala> def curry[A, B, C](f: (A, B) => C): A => (B => C) = (a: A) => f (a) _ | |
<console>:7: error: not enough arguments for method apply: (v1: A, v2: B)C in trait Function2. | |
Unspecified value parameter v2. | |
def curry[A, B, C](f: (A, B) => C): A => (B => C) = (a: A) => f (a) _ | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment