From 07c09b4ea2e56d479d93b945fd3d48afc3b88ae4 Mon Sep 17 00:00:00 2001 From: OlivierHnt <38465572+OlivierHnt@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:55:06 +0900 Subject: [PATCH] Fix `isdisjoint_interval` for multiple inputs --- src/intervals/interval_operations/boolean.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intervals/interval_operations/boolean.jl b/src/intervals/interval_operations/boolean.jl index a64978c75..fa4833c8c 100644 --- a/src/intervals/interval_operations/boolean.jl +++ b/src/intervals/interval_operations/boolean.jl @@ -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)