@@ -25,8 +25,8 @@ starting from zero:
25
25
^$x # same as 0 ..^ $x.Numeric
26
26
27
27
Iterating a range (or calling the C < list > method) uses the same semantics as
28
- the C < ++ > prefix and postfix operators, i.e. it calls the C < succ > method on
29
- the start point, and then generated elements) .
28
+ the C < ++ > prefix and postfix operators, i.e., it calls the C < succ > method on
29
+ the start point, and then the generated elements.
30
30
31
31
Ranges always go from small to larger elements; if the start point is bigger
32
32
than the end point, the range is considered empty.
@@ -42,7 +42,7 @@ increment-by-1.
42
42
43
43
Use C < Inf > or C < * > (Whatever) to indicate an end point to be open-ended.
44
44
45
- for 1..* { .say } # start from 1, continue until stopped
45
+ for 1..* { .say } # start from 1, continue until stopped
46
46
for 1..Inf { .say } # the same
47
47
48
48
= head1 Methods
@@ -95,10 +95,10 @@ Returns C<True> if both end points are C<Int> values.
95
95
96
96
method bounds(Range:D:) returns Positional
97
97
98
- If the C < Range > is an integer range (as indicated by L < is-int > , then this
98
+ If the C < Range > is an integer range (as indicated by L < is-int > ) , then this
99
99
method returns a list with the first and last value it will iterate over
100
100
(taking into account L < excludes-min > and L < excludes-max > ). Returns a
101
- Failure If it is not an integer range.
101
+ Failure if it is not an integer range.
102
102
103
103
= head2 method elems
104
104
0 commit comments