Drops a given number of values from the right side of an array, and returns the resulting array.
rdrop( array, number )
array: (Any Type Array) The array to modify.
number: (Integer) The number of values to drop from the array.
Any Type Array
The number value must be greater than or equal to 0.
You can experiment with this function in the test box below.
Test Input
rdrop({10, 20, 30, 40}, 1)
returns 10, 20, 30
On This Page