zipWith<B, C> method
- C Function(B b) f(
- T t
Join elements at the same index from two different List into
one List containing the result of calling f
on the elements pair.
Implementation
Iterable<C> Function(Iterable<B> lb) zipWith<B, C>(
C Function(B b) Function(T t) f) =>
(Iterable<B> lb) => isEmpty || lb.isEmpty
? []
: [
f(elementAt(0))(lb.elementAt(0)),
...skip(1).zipWith(f)(lb.skip(1)),
];