On Friday, June 3, 2016 at 2:54:57 AM UTC, Yichao Yu wrote: > > A Range is not a interval
Right. > but rather a series of equally spaced numbers Actually, they do not have to be equally spaced (for the straightforward definition)? Not the abstract Range, while "equally spaced" seems to fit the lower case range-function. You are thinking of e.g. StepRange, the concrete type you are likely to get. I do second e.g. the Unum suggestion (that is implemented, and has -Inf and +Inf) and Unum version 2.0 (that isn't implemented yet [in Julia], that I know of; only has +-Inf) might have few enough bit-patterns that you could usefully have a Range that steps through them all. I'm not sure this is a helpful comment, that you would want go through every bit-pattern (or every Nth); I'm kind of asking. Unums are just very interesting to me, as an abstraction of the whole real-line (and better match for it). [Look into SCORNs to have no gaps on the real-line of Unums 2.0.] [At least nzrange, goes though unspaced numbers, while the indexes to them are "spaced".] help?> Range search: Range range RangeIndex nzrange linrange UnitRange StepRange histrange FloatRange ClusterManager trailing_zeros trailing_ones OrdinalRange [..] [Why is e.g. ClusterManager and trailing_zeros displayed? I can see why RangeIndex is listed, based on the name, but actually it's a Union, not a Range.] so a range with `Inf` as start/end is basically meaningless. > You should probably find another datastructure. > > > > > Cheers, > > > > Colin > > > > > >
