Go to: Synopsis. Return value. MEL examples.

Synopsis

float[] floatArrayRemove(float[] $item, float[] $list)

Remove the float items in the first float array from the second float array. A new float array with the items removed is returned. The second argument is left unchanged.

Note that all occurrences of the given float items will be removed from the float array, not just the first occurrence.

Return value

None

Arguments

Variable Name Variable Type Description
$itemsfloat[]A list of float values to remove from the float array.
$listfloat[]The array to be acted upon.

MEL examples

  float $list[]  = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
  float $items[] = { 1.0, 3.0, 5.0, 7.0 };
  float $diff[] = floatArrayRemove($items, $list);
  // Result : { 2, 4, 6, 8 } //