title: Scala - pattern matching with conditional statements?
body: <p>Is it possible to do something like:</p>
  
  <pre><code>def foo(x: Int): Boolean = {
      case x &gt; 1 =&gt; true
      case x &lt; 1 =&gt; false
  }
  </code></pre>