Loading

ZIP

lists

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.

ZIP is available since version 1.0.0.

Signatures

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

Examples

A = ZIP([ [ 1, 2 ], [ 1, 2 ] ]) B = ZIP([ [ 1, 2, 3 ], [ 42 ] ]) C = ZIP([ [ 1, -2, 3 ], [ 4, 5, 'Warp 10' ], [ 7 ], [ 8, 9.5, [ 10, 11 ] ] ]) return A, B, C