indexUnchecked method

Vector<T> indexUnchecked(
  1. Iterable<int> indexes
)

Returns a mutable view onto indexes of a Vector. The behavior is undefined, if any of the indexes are out of bounds.

Implementation

Vector<T> indexUnchecked(Iterable<int> indexes) => switch (this) {
      IndexVector<T>(vector: final vector, indexes: final thisIndexes) =>
        IndexVector<T>(vector, indexes.map((index) => thisIndexes[index])),
      _ => IndexVector<T>(this, indexes),
    };