In progress...
This commit is contained in:
parent
8665b5297c
commit
9484352886
|
@ -0,0 +1,15 @@
|
||||||
|
void main () {
|
||||||
|
var list = new Gee.ArrayList<string> ();
|
||||||
|
list.add ("1");
|
||||||
|
list.add ("2");
|
||||||
|
list.add ("3");
|
||||||
|
|
||||||
|
var it = list.bidir_list_iterator ();
|
||||||
|
for (var has_next = it.first (); has_next; has_next = it.next ()) {
|
||||||
|
var next = list.bidir_list_iterator ();
|
||||||
|
next = it;
|
||||||
|
next.next ();
|
||||||
|
stdout.printf ("list[%d] = %s, ", it.index (), it.get ());
|
||||||
|
}
|
||||||
|
stdout.printf ("\n");
|
||||||
|
}
|
Loading…
Reference in New Issue