Skip to content

Instantly share code, notes, and snippets.

@harmeetsingh0013
Created December 28, 2017 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harmeetsingh0013/305f14ab578b60730d942fd96e4744f6 to your computer and use it in GitHub Desktop.
Save harmeetsingh0013/305f14ab578b60730d942fd96e4744f6 to your computer and use it in GitHub Desktop.
scala> val inc = funcd
<console>:12: error: missing argument list for method funcd
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `funcd _` or `funcd(_)` instead of `funcd`.
val inc = funcd
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment