Debian Codegraph @

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

raw
1 #include "tads.h"
2 #include "t3.h"
3
4 main(args)
5 {
6 local a, b;
7
8 a = [1, 2, 3];
9 b = [];
10 sayList(a - b);
11 }
12
13 sayList(lst)
14 {
15 "[";
16 for (local i = 1, local cnt = lst.length() ; i <= cnt ; ++i)
17 {
18 if (i != 1)
19 ", ";
20 tadsSay(lst[i]);
21 }
22 "]";
23 }
24