I have a pattern matching code. X is a case class with too many parameters. I just want to do some check for its 3rd,4th parameter, and would like to use wildcard for rest of them.
o match {
case Some(X(_,_, a,b, _*))) => // do something
case _ => // do something else
}
This doesn't seem to work for me. What is correct way of using wildcard here?