zip
Summary
Combine each element at the same index of two arrays.
Tip
This function is curried.
Description
Takes two arrays a and b and returns a new array
where each element of a and b at the same index are
put together. The length of the new array is equal to the length
of the smallest array.
Examples
1 2 | |
When arrays are not the same length
1 2 3 4 5 6 7 8 | |
Parameters
| Name | Type | Description |
|---|---|---|
| a | Array |
An array |
| b | Array |
Another array |
Return
Array.<Array>