Skip to main content
Version: 3.9.0

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

Contact Us

Have feedback or need help? Don’t be shyβ€”we’d love to hear from you!

Β 

Β 

Β 

Some Engineering Inc.