ZIP


lists
Since v1.0.0
Available on all platforms

The function ZIP takes a list of lists as parameters. Each list which are not singletons must be of same size.

It returns a list of lists where the i-th list contains the i-th elements of each input list in the same order.

Also, it considers singletons as a list of the same size with a duplicated value.

Signature

Examples

[ [ 1 2 ] [ 1 2 ] ] ZIP [ [ 1 2 3 ] [ 42 ] ] ZIP [ [ 1 -2 3 ] [ 4 5 'Warp 10' ] [ 7 ] [ 8 9.5 [ 10 11 ] ] ] ZIP