Skip to content

Commit f8540de

Browse files
committed
... checks initial elements against endpoint, too
1 parent 4082c42 commit f8540de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/operators.pod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,13 @@ This allows you to write
11551155
11561156
To generate all Fibonacci numbers up to but excluding 100.
11571157
1158+
The C<...> operators consider the initial values as "generated elements" as
1159+
well, so the are also checked against the endpoint:
1160+
1161+
my $end = 4;
1162+
say 1, 2, 4, 8, 16 ... $end;
1163+
# outputs 1 2 4
1164+
11581165
=head1 List Prefix Precedence
11591166
11601167
=head2 =

0 commit comments

Comments
 (0)