FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/integration_tests/array_expr_10.py at main · tanay-man/lpython · GitHub
tanay-man
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
integration_tests
/
array_expr_10.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (14 loc) · 329 Bytes
Breadcrumbs
lpython
/
integration_tests
/
array_expr_10.py
Copy path
File metadata and controls
17 lines (14 loc) · 329 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from
lpython
import
i32
from
numpy
import
empty
,
int32
,
array
def
foo
(
x
:
i32
[:]):
print
(
x
[
3
],
x
[
4
],
x
[
-
1
],
x
[
-
2
])
assert
x
[
-
1
]
==
5
assert
x
[
-
2
]
==
4
assert
x
[
-
3
]
==
3
assert
x
[
-
4
]
==
2
assert
x
[
-
5
]
==
1
def
main
():
x
:
i32
[
5
]
=
empty
(
5
,
dtype
=
int32
)
x
=
array
([
1
,
2
,
3
,
4
,
5
])
foo
(
x
)
main
()
Back
|
FazBrowse Home
|
New Git URL