IntervalUnions.jl

Author JuliaAPlavin
Popularity
1 Star
Updated Last
8 Months Ago
Started In
February 2024

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)

Used By Packages

No packages found.