Difference between revisions of "Array.remove()"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
[1,2,3].remove([2]) | [1,2,3].remove([2]) | ||
+ | |||
[1, 3] | [1, 3] | ||
[1,2,3].remove(2,3) | [1,2,3].remove(2,3) | ||
+ | |||
[1] | [1] | ||
Latest revision as of 03:05, 27 April 2020
Array.remove(ElementsToRemove|List of Elements)
Remove ElementsToRemove from original array.
[1,2,3].remove([2])
[1, 3]
[1,2,3].remove(2,3)
[1]
1..10.remove(1..5)
6 |
7 |
8 |
9 |
10 |