# Range Methods

**URL:** <https://chapel.discourse.group/t/range-methods/4029>\
**Category:** Users\
**Created:** [March 21, 2021, 1:33am UTC](https://chapel.discourse.group/t/range-methods/4029 "2021-03-21T01:33:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![damianmoz](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/damianmoz/32/319_2.png) [@damianmoz](https://chapel.discourse.group/u/damianmoz)\
**Post date:** [March 21, 2021, 1:33am UTC](https://chapel.discourse.group/t/range-methods/4029/1 "2021-03-21T01:33:00Z")

</div>

Where are range methods in the documentation? They seem elusive. In the  
Domain documentation, there are some methods defined that operate on the  
ranges returned by some of the methods of a Domain but it would be nice to  
find the details for methods of Range. I can see stuff in ChapelRange.chpl  
but it is not clear that it is definitive and complete.

Anyway, to the problems at hand.

Creating a Range Subset

---

<div class="post-metadata">

**Author:** ![damianmoz](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/damianmoz/32/319_2.png) [@damianmoz](https://chapel.discourse.group/u/damianmoz)\
**Post date:** [March 21, 2021, 2:02am UTC](https://chapel.discourse.group/t/range-methods/4029/2 "2021-03-21T02:02:34Z")

</div>

$#@! Discourse in email is broken. There was another 100+ lines in that posting and it just dropped them on the floor. I will repost the rest Monday morning US time. Not happy.

---

<div class="post-metadata">

**Author:** ![mppf](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mppf](https://chapel.discourse.group/u/mppf)\
**Post date:** [March 22, 2021, 1:42pm UTC](https://chapel.discourse.group/t/range-methods/4029/3 "2021-03-22T13:42:25Z")

</div>

Hi Damian, sorry for the trouble. We've noticed in the past that Discourse treats certain patterns as separators below which everything is ignored (and I think things like `---` are one of these). Brad asked about it in [Best practices: ascii separators in emails? - support - Discourse Meta](https://meta.discourse.org/t/best-practices-ascii-separators-in-emails/160393) and looking over that thread may help.

---

<div class="post-metadata">

**Author:** ![mppf](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mppf](https://chapel.discourse.group/u/mppf)\
**Post date:** [March 22, 2021, 1:44pm UTC](https://chapel.discourse.group/t/range-methods/4029/4 "2021-03-22T13:44:19Z")

</div>

> Where are range methods in the documentation?

The range type (and related functions/methods) is currently documented in two places:

[https://chapel-lang.org/docs/language/spec/ranges.html](https://chapel-lang.org/docs/language/spec/ranges.html)  
[https://chapel-lang.org/docs/builtins/ChapelRange.html](https://chapel-lang.org/docs/builtins/ChapelRange.html)

We are planning to unify these two in some way but unfortunately today there are probably some things covered in one of those documents but not the other.

---

<div class="post-metadata">

**Author:** ![damianmoz](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/damianmoz/32/319_2.png) [@damianmoz](https://chapel.discourse.group/u/damianmoz)\
**Post date:** [March 22, 2021, 11:55pm UTC](https://chapel.discourse.group/t/range-methods/4029/5 "2021-03-22T23:55:52Z")

</div>

That would explain it. I figured something like that. It was just a bit  
of a shock at the time.

No problems, I will just avoid those ------- lines into the future.

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037  
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here  
Views & opinions here are mine and not those of any past or present employer

---

<div class="post-metadata">

**Author:** ![damianmoz](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/damianmoz/32/319_2.png) [@damianmoz](https://chapel.discourse.group/u/damianmoz)\
**Post date:** [March 23, 2021, 12:06am UTC](https://chapel.discourse.group/t/range-methods/4029/6 "2021-03-23T00:06:46Z")

</div>

> ```
> Where are range methods in the documentation?
> 
> ```
> 
> The range type (and related functions/methods) is currently documented in  
> two places:
> 
> [Ranges — Chapel Documentation 1.32](https://chapel-lang.org/docs/language/spec/ranges.html)

That's more like it. Standard searches do not find the 1.24 doco and some  
of the earlier releases were not as complete.

> [Chapel Documentation — Chapel Documentation 1.32](https://chapel-lang.org/docs/builtins/ChapelRange.html)
> 
> We are planning to unify these two in some way but unfortunately today  
> there are probably some things covered in one of those documents but not  
> the other.

Thanks - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037  
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here  
Views & opinions here are mine and not those of any past or present employer
