nth_data


Description:

public unowned G nth_data (uint n)

Example: Get the nth item:

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

// Out: ´´2. element: "2. entry"´´
string el = list.nth_data (1);
print ("2. element: \"%s\"\n", el);

return 0;
}

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