@get


Description:

[ Version ( deprecated_since = "vala-0.26" , replacement = "SequenceIter.get" ) ]
public static unowned G @get (SequenceIter<G> iter)

Warning: @get is deprecated since vala-0.26. Use SequenceIter.get.

Example: Get data that a iter points to:

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: ``Lorem``
SequenceIter<string> iter = seq.get_begin_iter ();
print ("%s\n", Sequence<string>.get (iter));

return 0;
}

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