# How can I define a half-open interval in Julia, and test for containment?

**URL:** <https://discourse.julialang.org/t/how-can-i-define-a-half-open-interval-in-julia-and-test-for-containment/72787>\
**Category:** New to Julia\
**Created:** [December 8, 2021, 8:02pm UTC](https://discourse.julialang.org/t/how-can-i-define-a-half-open-interval-in-julia-and-test-for-containment/72787 "2021-12-08T20:02:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Post date:** [December 8, 2021, 8:35pm UTC](https://discourse.julialang.org/t/how-can-i-define-a-half-open-interval-in-julia-and-test-for-containment/72787/8 "2021-12-08T20:35:44Z")

</div>

Not, sure but some discussion and links here: [Intervals.jl vs IntervalSets.jl?](https://discourse.julialang.org/t/intervals-jl-vs-intervalsets-jl/16173)

---

_[View the full topic](https://discourse.julialang.org/t/how-can-i-define-a-half-open-interval-in-julia-and-test-for-containment/72787)._
