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...")
 
 
(One intermediate revision by one other user not shown)
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 15: Line 19:
 
1 2 4 5
 
1 2 4 5
  
 +
==See Also==
 +
[[Array.remove() |remove]]
  
==See Also==
+
[[Array.clean() |clean]]

Latest revision as of 03:04, 27 April 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

remove

clean