Skip to content

Commit

Permalink
Fix isdisjoint_interval for multiple inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Oct 31, 2024
1 parent 223b422 commit 07c09b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/intervals/interval_operations/boolean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function isdisjoint_interval(x::AbstractVector, y::AbstractVector)
return any(t -> isdisjoint_interval(t[1], t[2]), zip(x, y))
end

isdisjoint_interval(x, y, z, w...) = isdisjoint_interval(x, y) & isdisjoint_interval(y, z, w...)
isdisjoint_interval(x, y, z, w...) = isdisjoint_interval(x, y) & isdisjoint_interval(x, z) & isdisjoint_interval(y, z, w...)

"""
isweakless(x, y)
Expand Down

0 comments on commit 07c09b4

Please sign in to comment.