removeLast


Description:

public T removeLast ()

Removes and returns the last 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.removeLast () == "b");
assert (list.size () == 1);

Returns:

the last element, or null if empty.