Skip to content

compute zip

kgryte edited this page May 12, 2015 · 1 revision

Returns an array of arrays, where the ith element (tuple) in the returned array contains the ith elements of the input arrays.

var zipped = compute.zip( [1,2], ['a','b'] );
// returns [ [1,'a'], [2,'b'] ]

For function options, see the compute-zip module.

Clone this wiki locally