Debian Codegraph @

src/test/01-Basic/126.ck

raw
1 [1,2,3,4,5,6] @=> int a[];
2 [1,2,3,4,5,6] @=> int b[];
3
4 b.reverse();
5
6 // test b is the reverse of a
7 for (int i; i < a.size(); i++) {
8 if (a[i] != b[-i-1]) me.exit();
9 }
10
11 <<< "success" >>>;