I *really* wish there was a way to collapse LinSpace and FloatRange into a single type, but I cannot for the life of me figure out how to do it without making both of them much slower.
On Tue, Oct 20, 2015 at 11:14 PM, Art Kuo <arthurd...@gmail.com> wrote: > By the way, the original issue has been addressed and is now in master, > see #13615 <https://github.com/JuliaLang/julia/pull/13615>. Ranges act > the same internally, but REPL output looks like this: > > julia> 0:4 > 5-element UnitRange{Int64}: > 0,1,2,3,4 > > julia> 0:100 > 101-element UnitRange{Int64}: > 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,…,89,90,91,92,93,94,95,96,97,98,99,100 > > julia> linspace(0,2.5,4) > 4-element LinSpace{Float64}: > 0.0,0.833333,1.66667,2.5 > >