Julia Programming Language
Iteration reverse in for loop
New to Julia
lostella
August 8, 2020, 7:27am
2
You can use
for i in 10:-1:1
Note that the range includes the bounds
6 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
String and list
General Usage
strings
4
479
April 13, 2020
Is there a version of "enumerate" in the reverse order?
General Usage
3
1963
October 16, 2023
Bug in `reverse!`?
General Usage
11
459
March 12, 2020
`collect` iterator in reverse
General Usage
11
879
July 7, 2021
ranges and `end` token
Internals & Design
3
1126
November 30, 2017