Yes, that's correct. If you want it to work on both versions, you can write
FloatRange{Float64}[1.0:0.5:2.0, 3.0:0.1:4.0, 5.0:0.2:6.0].

On Tue, May 17, 2016 at 9:01 AM, Manor Askenazi <[email protected]>
wrote:

>
> On Tuesday, May 17, 2016 at 8:49:22 AM UTC-4, Yichao Yu wrote:
>>
>> On Tue, May 17, 2016 at 8:41 AM, Manor Askenazi
>> <[email protected]> wrote:
>> >     [1.0:0.5:2.0, 3.0:0.1:4.0, 5.0:0.2:6.0]
>> >
>> > Just turns into a 20-element Array{Float64,1} !!!
>>
>> This is deprecated on 0.4 and returns an Vector{FloatRange{Float64}} on
>> 0.5
>>
>
> Just to be clear, you are saying that in Julia 0.4, this is deprecated:
>
> [1.0:0.5:2.0, 3.0:0.1:4.0, 5.0:0.2:6.0]
>
> But that in Julia 0.5 (?) it yields:
>
> Vector{FloatRange{Float64}}
>
> Which is what I wanted to begin with...
>
> Did I understand you correctly?
>

Reply via email to