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);
| index |
the zero-based index. |
|
the element at the index, or null if out of bounds. |