Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
scala> def f[A](x: A, xs: List[A]): List[A] = x :: xs
f: [A](x: A, xs: List[A])List[A]
scala> def g[A](x: A)(xs: List[A]): List[A] = x :: xs
g: [A](x: A)(xs: List[A])List[A]
scala> f(3, _)
<console>:9: error: missing parameter type for expanded function ((x$1) => f(3, x$1))
f(3, _)
scala> f(3, _: List[Int])
res1: List[Int] => List[Int] = <function1>
scala> g(3) _
res2: List[Int] => List[Int] = <function1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment