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

In @GDScript.range(...) please add an example for reverse loop #3472

Closed
mrimvo opened this issue May 1, 2020 · 0 comments · Fixed by godotengine/godot#38397
Closed

In @GDScript.range(...) please add an example for reverse loop #3472

mrimvo opened this issue May 1, 2020 · 0 comments · Fixed by godotengine/godot#38397

Comments

@mrimvo
Copy link

mrimvo commented May 1, 2020

This is quite a common use case and I often don't remember the right snipped. Would be nice to see it in the docs.

for i in range(list.size()-1, -1, -1):
    print(list[i])
Calinou added a commit to Calinou/godot that referenced this issue Sep 30, 2021
akien-mga pushed a commit to akien-mga/godot that referenced this issue Oct 4, 2021
sairam4123 pushed a commit to sairam4123/godot that referenced this issue Nov 10, 2021
lekoder pushed a commit to KoderaSoftwareUnlimited/godot that referenced this issue Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants