That’s neat … I wrote a simple Math::Interval library in Raku https://github.com/librasteve/raku-Math-Interval
This is based Raku’s built-in Junction and Range classes and was an interesting experiment.