Merge pull request #20057 from bradcray/range-doc-rework
Rework range docs and merge chpldoc range output into spec
[reviewed by @e-kayrakli]
This PR updates the range docs to incorporate the chpldoc-generated
ChapelRange.chpl into the language spec and remove redundancies.
While here, I also took a pass over the ranges primer, incorporating content from
the ChapelRange.chpl module's header (which is redundant with the spec) into
it rather than just dropping it on the floor; and giving it a refresher pass in general.
In general, also updated content to reflect changes in this release.
To make the ranges primer continue to work, I did add one new param overload of
hasFirst()/hasLast() that would return
false for a completely unbounded range
that is stridable. Previously, this fell into the non-param case, which prevented
some nice conditional folding. Essentially, the logic here is that completely unbounded
ranges can never have first or last.
Modified Files: M doc/rst/conf.py