Document removeAt() return value. Fix #176.
This commit is contained in:
@@ -37,6 +37,10 @@ are shifted up to fill in where the removed element was.
|
||||
list.removeAt(1)
|
||||
IO.print(list) // "[a, c, d]".
|
||||
|
||||
Returns the removed item.
|
||||
|
||||
IO.print(["a", "b", "c"].removeAt(1) // "b".
|
||||
|
||||
It is a runtime error if the index is not an integer or is out of bounds.
|
||||
|
||||
### **[**index**]** operator
|
||||
|
||||
Reference in New Issue
Block a user