raz
/
conform
/
run
/ SliceBounds.raz
about
files
log
releases
feed
15 lines · 270 B ·
raw
·
history
· last change
1d7484fe
1
module
SliceBounds;
2
(* A slice must have 0 <= lo <= hi <= the length *)
3
import
Out;
4
5
proc
main*;
6
var
a: [
8
]
I64
; s: []
I64
; lo:
I64
;
7
begin
8
s := a[
0
..
8
];
9
for
lo :=
0
to
9
by
3
do
10
Out.int(
LEN
(s[lo..
6
]));
11
Out.str(
" "
);
12
end
;
13
end
;
14
15
end
SliceBounds.