[julia-users] Re: Something equivalent to Python's xrange()?

2015-03-12 Thread Ivar Nesje
Python learned that lesson in moving from python 2 to python 3, so Julia creates lazy ranges by default. With the focus Julia has on performance, this would probably an obvious choice anyway. For the ideom you present, we actually don't even create a range (because of inlining), but generate

[julia-users] Re: Something equivalent to Python's xrange()?

2015-03-12 Thread Ali Rezaee
That's cool. Thank you On Thursday, March 12, 2015 at 2:19:31 PM UTC+1, Ali Rezaee wrote: Hi, I am trying to iterate over a range of numbers. I know I can do this: for i in 1:10 println(i) end but, if I am not wrong, it creates a list from 1 to 10 and iterates over it. Is there a