Splice<T> extension

on

Methods

splice(int start, int count, [List<T>? insert]) Iterable<T>

Available on List<T>, provided by the Splice extension

Removes count elements from the list starting at index start, and optionally inserts elements from insert at that position. Returns an Iterable of the removed elements.