It is documented <http://docs.julialang.org/en/latest/stdlib/base/?highlight=colon#Base.:>, but it is not obvious (to me) where you would look for that peace of information. Maybe here <http://docs.julialang.org/en/latest/manual/control-flow/?highlight=range#man-loops> ?
Ivar kl. 15:54:21 UTC+2 onsdag 2. juli 2014 skrev Jay Kickliter følgende: > > Thanks, I just missed your reply. > > On Wednesday, July 2, 2014 7:52:47 AM UTC-6, Ivar Nesje wrote: >> >> They work, but you will have to set the step to -1 >> >> for i = 10:-1:1 >> println(i) >> end >> >> kl. 15:32:10 UTC+2 onsdag 2. juli 2014 skrev Jay Kickliter følgende: >>> >>> Are they meant to work? I could only find one meaning of them not >>> working (issue 5778 <https://github.com/JuliaLang/julia/issues/5778>). >>> >>> Here's an example: >>> >>> julia> for i = 1:10 >>> >>> println(i) >>> >>> end >>> >>> 1 >>> >>> 2 >>> >>> 3 >>> >>> 4 >>> >>> 5 >>> >>> 6 >>> >>> 7 >>> >>> 8 >>> >>> 9 >>> >>> 10 >>> >>> >>> julia> for i = 10:1 >>> >>> println(i) >>> >>> end >>> >>> >>> julia> >>> >>
