seed method

void seed(
  1. List<E> seedArray
)

Seed with .insert from new

Implementation

void seed(List<E> seedArray) {
  slots = List<ListDiffs<E>>.generate(
      seedArray.length + 1, (_) => ListDiffs.builder(args));
  // Each slot increases in the number of changes
  var index = 0;
  seedArray.forEach((item) {
    final slotIndex = index + 1;
    slots[slotIndex] = combine(
      slot: slots[slotIndex - 1],
      change: InsertDiff<E>(args, index, 1, [item]),
    );
    index++;
  });
}