[julia-users] Range is not Array, Why?

2016-02-01 Thread Li ly
Hello, fellows, One question I feel a bit confused is why there is UnitRange/FloatRange since we have Array in Julia. cheers, Yungui

Re: [julia-users] Range is not Array, Why?

2016-02-01 Thread Mauro
Ranges are a more compact representation of vectors with evenly spaced elements: julia> xdump(1:5:1000) StepRange{Int64,Int64} start: Int64 1 step: Int64 5 stop: Int64 996 i.e. it only uses 3 numbers instead of 200 (for this example). Anyway, you should be able to use a range just like