removeAt


Description:

public T removeAt (int index)

Removes and returns the element at the specified index. Returns null if the index is out of bounds.

Example:

    var list = new ArrayList<string> (GLib.str_equal);
list.add ("a");
list.add ("b");
assert (list.removeAt (0) == "a");
assert (list.size () == 1);

Parameters:

index

the zero-based index.

Returns:

the removed element, or null if out of bounds.