Skip to content

RemoveAt

ObjectType? RemoveAt(Array<ObjectType> array, Int index)

System · system operation · implicitly imported

Removes the element at the given index from an array.

Parameters

  • Array<ObjectType> array — The array to remove the element from.
  • Int index — The index of the element to remove.

Returns

ObjectType? — The removed element.

Errors

A runtime type error if index is not an Int, or no element can be removed from array at index.

See Also