zipWith

Usage

zipWith(f: a -> b -> c, xs: List<a>, ys: List<b>) → List<c>

Arguments

f:

The function f(x,y)

xs:

The first list

ys:

The second list

Description

Combine corresponding pairs of two lists using a function f

Examples

zipWith(|x y: x+y|, [1,2,3], [4,5,6])