IntervalSets.jl icon indicating copy to clipboard operation
IntervalSets.jl copied to clipboard

Interval Sets for Julia

Results 48 IntervalSets.jl issues
Sort by recently updated
recently updated
newest added

this also simplifies findall no new tests added: rely on the extensive findall testsuite

It seems quite strange to me that `eltype(1..2)` is `Int` because the elements in the mathematical set [1,2] are real numbers, and real numbers are usually represented by `Float64`. Happy...

I find it a bit uneasy that IntervalSets.jl encourages type-piracy. I think it might be preventing people from using it as a critical dependency. Instead, I suggest pointing people to...

This PR adds a copy method. The easiest way to do this was to call `deepcopy`, @ararslan @timholy is there any hidden issue in doing this?

The current `isequal` won't work in a `Dict` because it violates the principle that `isequal(a, b)` implies `hash(a) == hash(b)`. This is corrected to not special case empty intervals (unlike...

In [AcceleratedArrays.jl](https://github.com/andyferris/AcceleratedArrays.jl) I've been playing with "search intervals" for querying data, for example finding all the dates within a given range with the help of a sort-based acceleration index. To...

Just like `union([1,2], [2,3], [3,5])`, the following operation should be supported. ```julia julia> using IntervalSets julia> union(1..2, 2..3) 1..3 julia> union(1..2, 2..3, 3..5) ERROR: MethodError: no method matching iterate(::ClosedInterval{Int64}) Closest...