flatten
Command
The flatten
command combines groups of elements from the input stream into a stream of individual elements, preserving their original order.
Usageβ
flatten
Examplesβ
> json [[1, 2], 3, [4, 5]] | flatten
β1
β2
β3
β4
β5
An already flat stream of elements would be unchanged
> json [1, 2, 3, 4, 5] | flatten
β1
β2
β3
β4
β5