# Strange behavior of Range object

**URL:** <https://discourse.julialang.org/t/strange-behavior-of-range-object/72048>\
**Category:** General Usage\
**Tags:** range\
**Created:** [November 25, 2021, 9:08am UTC](https://discourse.julialang.org/t/strange-behavior-of-range-object/72048 "2021-11-25T09:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mottelet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mottelet/32/31089_2.png) [@mottelet](https://discourse.julialang.org/u/mottelet)\
**Post date:** [November 25, 2021, 9:08am UTC](https://discourse.julialang.org/t/strange-behavior-of-range-object/72048/1 "2021-11-25T09:08:53Z")

</div>

Hello, I am wondering why a “potentially” empty (when collected) range such as `10:1` is echoed differently (although equivalently empty)

```julia
julia> 10:1
10:9

```

S.

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [November 25, 2021, 9:37am UTC](https://discourse.julialang.org/t/strange-behavior-of-range-object/72048/2 "2021-11-25T09:37:53Z")

</div>

See [Strange behavior of intersect() when applied to ranges - #9 by StefanKarpinski](https://discourse.julialang.org/t/strange-behavior-of-intersect-when-applied-to-ranges/22313/9) for a previous discussion.

This might change soon: [https://github.com/JuliaLang/julia/pull/43058](https://github.com/JuliaLang/julia/pull/43058)
