Assume we have:

$a = @(1, @(2, @(3)))

I would like to flatten $a to get @(1, 2, 3).

I have found one solution:

@($a | % {$_}).count

But maybe there is a more elegant way?

Edit
Report