Is there a continuous range type in julia?

Hi,

I was wondering if there exists a continuous range type. The idea would be to be able to have something like

0.5 in CRange(0,1)

to return true. The interest is mostly syntactic I guess, but since continuous ranges are a thing in math it could be nice.
We could define stuff like

Rplus = CRange(0, Inf)

1 Like

You should check out IntervalArithmatic it uses 0..1 as syntax for this concept, and lets you perform math on intervals to get other intervals guaranteed to contain the correct answer

2 Likes

Ha sweet, thanks !