removeFirst


Description:

public T removeFirst ()

Removes and returns the first element. Returns null if the list is empty.

Example:

    var list = new LinkedList<string> (GLib.str_equal);
list.addLast ("a");
list.addLast ("b");
assert (list.removeFirst () == "a");
assert (list.size () == 1);

Returns:

the first element, or null if empty.