append


Description:

[ ReturnsModifiedPointer ]
public void append (owned G data)

Example: Append a value:

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

// Output:
// ``1. entry``
// ``2. entry``
// ``3. entry``
foreach (unowned string e in list) {
print ("%s\n", e);
}

return 0;
}

valac --pkg glib-2.0 GLib.List.append.vala