You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Scala2.12.8 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_162-ea).
Type in expressions for evaluation. Ortry:help.
scala> { deff(x1: Int, x2: Int) = x1 + x2 ; f }
<console>:12:error: missing argument list for method f
Unapplied methods are only converted to functions when a function typeis expected.
You can make this conversion explicit by writing `f _` or `f(_,_)` instead of `f`.
{ deff(x1: Int, x2: Int) = x1 + x2 ; f }
^
scala>
The text was updated successfully, but these errors were encountered:
https://github.com/scala-exercises/exercises-scalatutorial/blob/master/src/main/scala/scalatutorial/sections/HigherOrderFunctions.scala#L126-L138
If I try to run code like this, I get:
The text was updated successfully, but these errors were encountered: