title: Using comparison operators in Scala's pattern matching system
body: <p>Is it possible to match on a comparison using the pattern matching system in Scala?
  For example:</p>
  
  <pre><code>a match {
      case 10 =&gt; println("ten")
      case _ &gt; 10 =&gt; println("greater than ten")
      case _ =&gt; println("less than ten")
  }
  </code></pre>
  
  <p>The second case statement is illegal, but I would like to be able to specify "when a is greater than".</p>