Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for Multi-Dimensional Array access #66

Open
lvcabral opened this issue Apr 14, 2024 · 0 comments
Open

Implement support for Multi-Dimensional Array access #66

lvcabral opened this issue Apr 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lvcabral
Copy link
Collaborator

Roku supports multi-dimensional array indexes for roArray and roList

	' three dimensional array
	a = [[1,2,["a","b","c"]], [4,5,["d","e","f"]], [7,8,["g","h","i"]]]
	print a[1][2][2]'==> f
	print a[1,2][2] '==> f
	print a[1][2,2] '==> f
	print a[1,2,2]  '==> f
	print a[1,2,3]  '==> invalid

	'Assign with multi-index
	a[2, 1] = true
	print a[2, 1] '==> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant