title: Flatten array in PowerShell
body: <p>Assume we have:</p>
  
  <pre><code>$a = @(1, @(2, @(3)))
  </code></pre>
  
  <p>I would like to flatten <code>$a</code> to get <code>@(1, 2, 3)</code>.</p>
  
  <p>I have found <a href="http://dougfinke.com/blog/index.php/2008/07/17/powershell-quiz-2" rel="noreferrer">one solution</a>:</p>
  
  <pre><code>@($a | % {$_}).count
  </code></pre>
  
  <p>But maybe there is a more elegant way?</p>