I was going through videos of Functional Programming in Scala taught in coursera. I came across these code
def averageDamp(f: Double => Double)(x: Double) = (x + f(x)) / 2
and its implementation as
def sqrt(x: Double): Double = fixedPoint(averageDamp(y => y / x))(1)
but couldn't use it in the form
averageDamp(x => x)
It says that argument is missing. Isn't the argument missing in above case as well. Somebody help. Thanks in advance :)