Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #74 from lucasbuchala/range-excludes
Change Range excludes_* methods to dashes
  • Loading branch information
moritz committed Jan 1, 2015
2 parents 8969a74 + 1a4d949 commit b983b23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions S03-operators.pod
Expand Up @@ -3466,11 +3466,11 @@ values as a two-element list representing the interval. Ranges are
not autoreversing: C<2..1> is always a null range. (The sequence
operator C<...> can autoreverse, however. See below.)

Range objects support C<.excludes_min> and C<.excludes_max> methods
Range objects support C<.excludes-min> and C<.excludes-max> methods
representing the exclusion (has C<^>) or inclusion (no C<^>) of each
endpoint in the C<Range>.

Range | .min | .max | .excludes_min | .excludes_max
Range | .min | .max | .excludes-min | .excludes-max
-----------+------+------+---------------+------------
1..10 | 1 | 10 | Bool::False | Bool::False
2.7..^9.3 | 2.7 | 9.3 | Bool::False | Bool::True
Expand Down Expand Up @@ -3539,8 +3539,8 @@ inferred from the right operand.
An empty range cannot be iterated; it returns C<()> instead. An empty
range still has a defined C<.min> and C<.max>, but one of the following is
true: 1. The C<.min> is greater than the C<.max>. 2. The C<.min> is equal
to the C<.max> I<and> at least one of C<.excludes_min> or C<.excludes_max> is true.
3. Both C<.excludes_min> and C<.excludes_max> are true I<and> C<.min> and C<.max>
to the C<.max> I<and> at least one of C<.excludes-min> or C<.excludes-max> is true.
3. Both C<.excludes-min> and C<.excludes-max> are true I<and> C<.min> and C<.max>
are consecutive values in a discrete type that cannot create new
values between those two consecutive values. For this purpose,
interval representations in C<Real> (including integers) are
Expand Down
4 changes: 2 additions & 2 deletions S32-setting-library/Containers.pod
Expand Up @@ -1051,8 +1051,8 @@ BagHash, Pair, and PairMap.
method min() {...}
method max() {...}
method bounds() returns Parcel {...}
method excludes_min {...}
method excludes_max {...}
method excludes-min {...}
method excludes-max {...}
method sample {...}
}

Expand Down

0 comments on commit b983b23

Please sign in to comment.