raz
/
conform
/
run
/ SliceIndex.raz
about
files
log
releases
feed
15 lines · 262 B ·
raw
·
history
· last change
1d7484fe
1
module
SliceIndex;
2
(* An index checked against a slice's length, which is in memory *)
3
import
Out;
4
5
proc
main*;
6
var
a: [
8
]
I64
; s: []
I64
; i:
I64
;
7
begin
8
s := a[
2
..
5
];
9
for
i :=
0
to
3
do
10
Out.int(i);
11
s[i] := i;
12
end
;
13
end
;
14
15
end
SliceIndex.