zipWith<TX, TY, TR> function

List<TR> zipWith<TX, TY, TR>(
  1. List<TX> xs,
  2. List<TY> ys,
  3. TR f(
    1. TX a,
    2. TY b
    )
)

Implementation

List<TR> zipWith<TX, TY, TR>(
  List<TX> xs,
  List<TY> ys,
  TR Function(TX a, TY b) f,
) {
  return List.generate(xs.length, (i) => f(xs[i], ys[i]), growable: false);
}