Debian Codegraph @

reports/st/test_forindi.ll

raw
1 /*
2 * @progname test_forindi_it
3 * @version 1
4 * @author Stephen Dum
5 * @category self-test
6 * @output text
7 * @description
8 *
9 * test indi iterator: forindi
10 * Iterate over some data, printing results, so we can
11 * compare the output with exected results.
12 */
13 proc main() {
14 print(nl())
15 forindi(i,c) { print(d(c),": ",key(i),nl()) }
16 }