0
下面的下劃線表示什麼意思。這是scalaz7庫的片段:表達式中的下劃線
trait Apply[F[_]] extends Functor[F] { self =>
//...
def ap[A, B](fa: => F[A])(f: => F[A => B]): F[B]
//...
def apF[A, B](f: => F[A => B]): F[A] => F[B] = ap(_)(f) // <----HERE
//...
}
什麼是使用它的一般規則?
更一般地,請參閱http://stackoverflow.com/questions/8000903/what-are-all-the-uses-of-an-underscore-in-scala –