Dlaczego i kiedy muszę śledzić nazwę metody za pomocą _?

Jestem trochę niepewny co do zasad, kiedy potrzebujesz_ po metodzie użycia jej jako funkcji. Na przykład, dlaczego jest różnica międzyFooiNiljest:: w następującym?

def square(n: Int) = n * n  
object Foo { def ::(f: Int => Int) = f(42) }

// ...

scala> Foo.::(square)
res2: Int = 1764

scala> Nil.::(square) 
<console>:6: error: missing arguments for method square in object $iw;
follow this method with `_' if you want to treat it as a partially applied function
   Nil.::(square)
          ^
scala> Nil.::(square _) 
res3: List[(Int) => Int] = List(<function1>)

questionAnswers(1)

yourAnswerToTheQuestion