get_iter_at_pos
Description:
Returns the iterator at position pos
.
If pos
is negative or larger than the number of items in this, the end iterator is returned.
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
Parameters:
this |
a Sequence |
pos |
a position in this, or -1 for the end |
Returns:
The SequenceIter at position |