title: Can a range be matched in Scala?
body: <p>Is it possible to match a range of values in Scala?</p>
  
  <p>For example:</p>
  
  <pre><code>val t = 5
  val m = t match {
      0 until 10 =&gt; true
      _ =&gt; false
  }
  </code></pre>
  
  <p><code>m</code> would be <code>true</code> if <code>t</code> was between 0 and 10, but false otherwise. This little bit doesn't work of course, but is there any way to achieve something like it?</p>