From b7cf5a60b5b4993af946558b84cd8a49169381e1 Mon Sep 17 00:00:00 2001 From: joshday Date: Tue, 17 Mar 2020 10:57:24 -0400 Subject: [PATCH] quick fix --- src/part.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part.jl b/src/part.jl index 50150b4..b014e5b 100644 --- a/src/part.jl +++ b/src/part.jl @@ -58,7 +58,7 @@ end mutable struct ClosedInterval{T} <: Domain first::T last::T - ClosedInterval(a::T, b::T) where {T} = a < b ? new{T}(a,b) : error("Arguments must be ordered") + ClosedInterval(a::T, b::T) where {T} = a ≤ b ? new{T}(a,b) : error("Arguments must be ordered") end Base.show(io::IO, b::ClosedInterval) = print(io, "ClosedInterval: [$(b.first), $(b.last)]") Base.in(x, bucket::ClosedInterval) = bucket.first ≤ x ≤ bucket.last