Debian Codegraph @

src/test/01-Basic/197-array-append-array.ck

raw
1 // test array append array (int)
2 // SEE: https://github.com/ccrma/chuck/issues/202
3
4 // 2D int array
5 int foo[0][0];
6 // int array
7 int bar[0];
8 // append to bar
9 bar << 1 << 2 << 3 << 5;
10 // appent 1D array into 2D array
11 foo << bar;
12
13 // print contents
14 for( int x[ ] : foo )
15 {
16 for( int y : x )
17 {
18 <<< y >>>;
19 }
20 }