Skip to content

Instantly share code, notes, and snippets.

@polynomial
Created February 17, 2015 14:40
Show Gist options
  • Save polynomial/42bd9a8b07a8845bf634 to your computer and use it in GitHub Desktop.
Save polynomial/42bd9a8b07a8845bf634 to your computer and use it in GitHub Desktop.
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