cfad47cfa3/t3compiler/tads3/test/data/vec_each.t

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
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