title: Scala: Pattern match multiple Option arguments
body: <p>I would like to achieve something like the following:</p>
  
  <pre><code>  private def msgPrefix(implicit myClass: MyClass, anotherClass: AnotherClass) = {        
      Option(myClass, anotherClass) match {
        case Some(validMyClass, validAnotherClass) =&gt; validMyClass.process + validAnotherClass.process
        case _       =&gt; ""
      }
    }
  </code></pre>
  
  <p>What is the right way to do this?</p>