@get


Description:

public T @get (int index)

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

This is an O(n) operation as it must traverse the list.

Example:

    var list = new LinkedList<string> (GLib.str_equal);
list.addLast ("a");
list.addLast ("b");
list.addLast ("c");
assert (list.get (1) == "b");
assert (list.get (99) == null);

Parameters:

index

the zero-based index.

Returns:

the element at the index, or null if out of bounds.