title: Pattern matching in Racket
body: <p>I have this code snippet in Haskell:</p>
  
  <pre><code>matchEx :: Expr -&gt; [Expr]
  matchEx (Number n) = undefined
  matchEx (Boolean b) = undefined
  matchEx (If condStatement thenStatement elseStatement) = undefined
  </code></pre>
  
  <p>What would the equivalent pattern matching looks like in racket? After looking at the documentation, this is what I have. Thanks.</p>
  
  <pre><code>(define (matchEx-calls expr)
    (match expr
      [(literal n) ([])]
      [(id ident) ([])]
      [(If condStatement thenStatement elseStatement) ([])] 
     )
    )
  </code></pre>