Difference between revisions of "Array.removeByVal()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
Line 7: Line 7:
  
 
This member function finds the value in an array, and removes the value, and changes the original array by default, unless ReturnCopy is true.
 
This member function finds the value in an array, and removes the value, and changes the original array by default, unless ReturnCopy is true.
 +
 +
 
a=1..5;
 
a=1..5;
 +
 
a.removeByVal(3)
 
a.removeByVal(3)
 +
 
a
 
a
  
Line 14: Line 18:
  
 
1 2 4 5
 
1 2 4 5
 
  
 
==See Also==
 
==See Also==

Revision as of 10:34, 16 February 2020


Array.removeByVal(SomeValue,ReturnCopy )

This member function finds the value in an array, and removes the value, and changes the original array by default, unless ReturnCopy is true.


a=1..5;

a.removeByVal(3)

a

gives

1 2 4 5

See Also