Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 468 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 468 Bytes

IntervalUnions.jl

Extend IntervalSets.jl with interval unions -- unions of disjoint intervals. Not all operations are type-stable for now, this is subject to further improvements.

Examples

julia> iu = IntervalUnion((1..2., 3..4.))
1.0..2.0  3.0..4.0

julia> iu  (10..11.)
1.0..2.0  3.0..4.0  10.0..11.0

julia> setdiff(iu, 1.3..3)
1.0..1.3 (closed–open)  3.0..4.0 (open–closed)