Debian Codegraph @

terps/tads/tads3/test/data/vec_each.t

raw
1 #include <tads.h>
2 #include <vector.h>
3
4 main(args)
5 {
6 local v = new Vector(5);
7 local cnt;
8
9 v += 0;
10 v += 0;
11 v += 0;
12 v += 0;
13 v += 0;
14 cnt = 0;
15 v.applyAll({x: cnt++});
16 foreach (local i in v)
17 "<< i >>\n";
18 }
19