title: Haskell "otherwise" pattern match?
body: <p>I have the following code:</p>
  
  <pre><code>swapInPairs :: [a] -&gt; [a]
  swapInPairs [] = []
  swapInPairs [x] = [x]
  swapInPairs (x:y:ys) = y : x : swapInPairs ys
  </code></pre>
  
  <p>is there any way to do something like</p>
  
  <pre><code>swapInPairs :: [a] -&gt; [a]
  swapInPairs (x:y:ys) = y : x : swapInPairs ys
  otherwise = id
  </code></pre>
  
  <p>I know it's not really a big deal, and only gets rid of one line of code, but I'm curious if there's something like this for pattern matching since guards have "otherwise".</p>