On Thu, Jun 2, 2016 at 10:44 PM,  <colintbow...@gmail.com> wrote:
> Hi all,
>
> Is there any way to build a range that corresponds to the mathematical set
> (-Inf, Inf)? I had a look at the source code in range.jl (which is very
> readable!) and it doesn't appear that any of the Range types is suitable to
> this task, e.g. StepRange doesn't take Float64 inputs, UnitRange(-Inf, Inf)
> returns the range (-Inf, NaN) since the constructor returns
> convert(T,start+floor(stop-start)) for the stop value (I'm presuming for
> good reasons that I'm not smart enough to understand), and FloatRange needs
> concepts like step, len, and divisor that aren't well defined in this
> context.

A Range is not a interval but rather a series of equally spaced
numbers so a range with `Inf` as start/end is basically meaningless.
You should probably find another datastructure.

>
> Cheers,
>
> Colin
>
>

Reply via email to