Example: Get the nth iter

public static int main (string[] args) {
Sequence<string> seq = new Sequence<string> ();
seq.append ("Lorem");
seq.append ("ipsum");
seq.append ("dolor");
seq.append ("sit");
seq.append ("amet");

// Output: ``ipsum``
SequenceIter<string> iter = seq.get_iter_at_pos (1);
print ("%s\n", iter.get ());

return 0;
}

 valac --pkg glib-2.0 GLib.Sequence.get_iter_at_pos.vala

See:




2022 vala-language.org