1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
list = 1 2
list[0] = foo
list[4] = 'test'
body {
foo: list;
foo: list[0];
foo: list[1];
foo: list[2] == null;
foo: list[3] == null;
foo: list[4] == 'test';
foo: length(list);
}
body {
list = 1 2
list[0] = foo
list[1..3] = 'one'
foo: list;
}
body {
list = 1
list[4..5] = 'two';
foo: list;
}
fn(list)
list[2] = asdf
list[3] = 'three'
list
body {
foo: fn(1 2 3);
}
fn()
arguments[2] = asdf
arguments[3] = 'three'
arguments
body {
foo: fn(1 2 3);
}
|