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 more memory efficient method so that it does not create and 
> store the list? something that returns an iterator object similar to 
> Python's xrange().
>
> Many thanks
>

Reply via email to