diff property

Iterable<T> get diff

returns the difference between each elemnt

Implementation

Iterable<T> get diff sync* {
  final i1 = iterator;
  final i2 = iterator;
  i2.moveNext();
  while (i1.moveNext() && i2.moveNext()) {
    yield i1.current + i2.current as T;
  }
}