I have a method:
def replaceSpecialSymbols(str: String): String = str.collect {
case '/' => '-'
case _ => _
}.toString
Whe I try to build this code, I receive the error message: "error: unbound placeholder parameter case _ => _"
I know that I can use replaceAll. But I want to know what is going on in this case in Scala compiler.
Thank you.