Sign in
apache
/
casbin-jcasbin-aviatorscript
/
refs/heads/master
/
.
/
examples
/
list.av
blob: 42992ea5c0a50c446dc2b66048e476937f7e647a [
file
]
## examples/list.av
let
list
=
seq
.
list
(
1
,
2
,
3
);
p
(
"list[0]=#{list[0]}"
);
p
(
"list[1]=#{list[1]}"
);
p
(
"seq.get(list, 2)=#{seq.get(list, 2)}"
);
list
[
0
]
=
4
;
list
[
1
]
=
5
;
list
[
2
]
=
6
;
p
(
list
);
## Index out of bounds
list
[
3
]
=
7
;