dropIndices method

Set<E> dropIndices(
  1. Iterable<int> indicesToDrop
)

Removes the elements at the given indices.

10, 11, 12.dropIndices(0, 2) returns 11.

Invalid indices are ignored.

Implementation

Set<E> dropIndices(Iterable<int> indicesToDrop) {
  return h
      .dropIndicesIterable(
        original: this,
        indicesToDrop: indicesToDrop,
      )
      .toSet();
}