public native removeAt(index as Int) as Void
Removes the element at the requested index.
Removing the head or tail is constant-time. Removing an element in the middle requires linear traversal to locate its node.
| Parameter | Description |
|---|---|
index | Zero-based index of the element to remove. |
import klyn.collections data = LinkedList<Int>([10, 20, 30]) data.removeAt(1) print(data) # l:[10, 30]