Go to: Synopsis. Return value. MEL examples.

Synopsis

int intArrayRemoveAtIndex(int $index, int[] $list)

Remove the entry at $index from the int array $list.

Return value

None

Arguments

Variable Name Variable Type Description
$indexintThe index of the element to remove from $list.
$listint[]A list of int values.

MEL examples

  int $array1[] = { 1, 2, 3 };
  // Result: 1 2 3 //

  intArrayRemoveAtIndex(1, $array1);
  // Result: 1 //

  print $array1;
  // Result: 1 3 //