reverse


Description:

[ ReturnsModifiedPointer ]
public void reverse ()

Example: Reverse:

public static int main (string[] args) {
SList<int> list = new SList<int> ();
list.append (3);
list.append (2);
list.append (1);

list.reverse ();

// Out:
// ´´1´
// ´´2´´
// ´´3´´
foreach (int i in list) {
print ("%d\n", i);
}

return 0;
}

valac --pkg glib-2.0 GLib.SList.reverse.vala