Skip to content

Commit 19ff271

Browse files
rrthomastintou
authored andcommitted
examples: Add Gee.ArrayQueue
1 parent 98963ec commit 19ff271

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
void main () {
2+
var queue = new Gee.ArrayQueue<string> ();
3+
queue.offer ("hello");
4+
queue.offer ("this");
5+
queue.offer ("time");
6+
7+
foreach (string s in queue)
8+
print ("%s\n", s);
9+
}

examples/gee-0.8/gee-0.8.valadoc.examples

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<examples>
2+
<example>
3+
<title>Demonstrate the use of ArrayQueue</title>
4+
<file>Gee.ArrayQueue.vala</file>
5+
<compile>valac --pkg gee-0.8 Gee.ArrayQueue.vala</compile>
6+
<node>Gee.ArrayQueue</node>
7+
</example>
28
<example>
39
<title>Find the length of the longest string in a set</title>
410
<file>Gee.Traversable.fold.vala</file>

0 commit comments

Comments
 (0)