Example: Demonstrate the use of ArrayQueue

void main () {
var queue = new Gee.ArrayQueue<string> ();
queue.offer ("hello");
queue.offer ("this");
queue.offer ("time");

foreach (string s in queue)
print ("%s\n", s);
}

 valac --pkg gee-0.8 Gee.ArrayQueue.vala

See:




2022 vala-language.org