zip_with
zip_with(Object f, Object x, Object y) -> Object
Combines corresponding elements into a list.
Parameters
- f: The combining function.
- x: The first source container.
- y: The second source container.
Returns
A list of combined values.
Example
zip_with(`+`, [1, 2, 3], [4, 5, 6])
//-> [5, 7, 9]