Function Vector.atCopy

Returns a copy to the element at position pos.

GetElementType!This atCopy(This) (
  const size_t pos
) scope;

Examples

Vector!(int, 6) vec = Vector!(int, 6).build(1, 2, 3, 4, 5, 6);

assert(vec.atCopy(3) == 4);
assert(vec.atCopy(vec.length-1) == 6);