move
Description:
[ Version ( deprecated_since = "vala-0.26" , replacement = "SequenceIter.move_to" ) ]
public static void move (SequenceIter<G> src, SequenceIter<G> dest)
public static void move (SequenceIter<G> src, SequenceIter<G> dest)
Warning: move is deprecated since vala-0.26. Use SequenceIter.move_to.
Example: Move:
public static int main (string[] args) {
Sequence<string> seq = new Sequence<string> ();
seq.append ("Lorem");
seq.append ("dolor");
seq.append ("ipsum");
seq.append ("sit");
seq.append ("amet");
SequenceIter<string> iter1 = seq.get_iter_at_pos (1);
SequenceIter<string> iter2 = seq.get_iter_at_pos (3);
Sequence<string>.move (iter1, iter2);
// Output:
// ``Lorem``
// ``ipsum``
// ``dolor``
// ``sit``
// ``amet``
seq.foreach ((item) => {
print ("%s\n", item);
});
return 0;
}
valac --pkg glib-2.0 GLib.Sequence.move.vala