array_zip
Combines arrays by position.
The output length is limited by the shortest input array.
{ "{returns}": { "array_zip": { "together": [ ["a", "b"], [1, 2] ], "flattened": false } } }
{ "{returns}": { "array_zip": { "together": [ ["a", "b", "c"], [1, 2] ] } } }
The result is:
[ ["a", 1], ["b", 2] ]
With "flattened": true, the result is ["a", 1, "b", 2].
"flattened": true
["a", 1, "b", 2]
There was an error while loading. Please reload this page.