Get elements at specified indices
List<T> getAtIndices(List<int> indices) { return indices .where((index) => index >= 0 && index < length) .map((index) => this[index]) .toList(); }