Zip is an aggregator that returns the Cartesian product of one or more collections.

JavaScript (Every)

var arrays = [ [1, 2, 3], ['a', 'b'] ];
var result = arrays
    .reduce((a, b) => a.length > b.length ? a : b)
    .map((e, i) => arrays
        .map((o) => o[i]));

fuss/lambda_calculus/functional_programming/aggreagators/zip.txt ยท Last modified: 2017/03/07 10:03 by office

Access website using Tor Access website using i2p

For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy and plagiarism pages.