chuck test.ck:1:2:3:4:5
test.ck as follows:
int vect1[2];
int vect2[3];
for( 0 => int i; i < me.args(); i++) {
//fill vect1
if(i == 0) {
for( 0 => int i; i < vect1.cap(); i++) {
Std.atoi(me.arg(i)) => vect1[i];
}
}
//fill vect2
if(i == 2) {
for( 0 => int i; i < vect2.cap(); i++) {
Std.atoi(me.arg(i+2)) => vect2[i];
}
}
}
for(0 => int i; i < vect1.cap(); i++) {
<<<"vect1", vect1[i]>>>;
}
for(0 => int i; i < vect2.cap(); i++) {
<<<"vect2", vect2[i]>>>;
}
test.ck outputs:
vect1 1
vect1 2
vect2 3
vect2 4
vect2 5