Functions
array.remove()
Removes the element at `index` and returns it. The elements after it move down one index.
Syntax
array.remove(series array id, series int index) → void
Arguments
id required series array index required series int Return Type
void Example
//@lipi=2
indicator("array.remove Example", overlay=false)
values = array.from(10.0, 20.0, 30.0)
removed = array.remove(values, 1)
// removed is 20.0 and the array now holds 10.0, 30.0
plot(removed, title="Removed Value", color=color.blue)