Removes all elements from the list.
Example:
var list = new ArrayList<string> (GLib.str_equal); list.add ("a"); list.clear (); assert (list.isEmpty ());