set method

Option<IVector<A>> set(
  1. int index,
  2. A a
)

Implementation

Option<IVector<A>> set(int index, A a) => _elementsByIndex.set(_offset+index, a).map((newElements) => new IVector._internal(newElements, _offset, _length));