0

From "function programming with scala" book, I come acorss the following usecase of _ which doesn't make sense to me.

def lift[A](f: A => B): Option[A] => Option[B]: _ map f

what can _ be substituted as in this case?

can anyone help me understand what rules are used for underscore here?

0 Answers0