Skip to content

Commit 9787750

Browse files
committed
Clarifications and reflow
1 parent cdabde8 commit 9787750

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

doc/Language/operators.pod6

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,8 @@ L<traps|/language/traps#Loose_boolean_operators>.
23282328
23292329
multi sub prefix:<so>(Mu $x --> Bool:D)
23302330
2331-
Evaluates its argument in boolean context (and thus collapses L<Junction|/type/Junction>s),
2332-
and returns the result.
2331+
Evaluates its argument in boolean context (and thus collapses
2332+
L<Junction|/type/Junction>s), and returns the result.
23332333
23342334
=head1 Comma operator precedence
23352335
@@ -2346,11 +2346,12 @@ Constructs a higher-order L<Cool|/type/Cool> from its arguments.
23462346
my %a = :11a, :22b;
23472347
say %(%a, :33x); # OUTPUT: «{a => 11, b => 22, x => 33}␤»
23482348
2349-
In the first case it returns a L<List|/type/List>, in the second case, since the arguments
2350-
are L<Pair|/type/Pair>s, it builds a L<Hash|/type/Hash>.
2349+
In the first case it returns a L<List|/type/List>, in the second case, since the
2350+
arguments are L<Pair|/type/Pair>s, it builds a L<Hash|/type/Hash>.
23512351
23522352
It can also be used for constructing variables from other variables, collating
2353-
elements of different types, in this case a L<Hash|/type/Hash> and a L<Pair|/type/Pair>:
2353+
elements of different types, in this case a L<Hash|/type/Hash> and a
2354+
L<Pair|/type/Pair>:
23542355
23552356
=begin code :preamble<my %hash>
23562357
my %features = %hash, :wields("hammer");
@@ -2378,11 +2379,9 @@ other positions, it's a syntax error.
23782379
23792380
sub infix:<Z>(**@lists --> Seq:D) is assoc<chain>
23802381
2381-
X<Zip operator>.
2382-
2383-
Interleaves the lists passed to C<Z> like a zipper, stopping as soon as the
2384-
first input list is exhausted. The returned C<Seq> contains a nested list with
2385-
values for all C<Z> operators in a chain.
2382+
The X<Zip operator> interleaves the lists passed to C<Z> like a zipper, stopping
2383+
as soon as the first input list is exhausted. The returned C<Seq> contains a
2384+
nested list with values for all C<Z> operators in a chain.
23862385
23872386
=for code
23882387
say (1, 2 Z <a b c> Z <+ ->).perl;
@@ -2419,7 +2418,8 @@ lists are replaced by the value from applying the operator to the list:
24192418
# produces (1a9 1b9 1c9 2a9 2b9 2c9 3a9 3b9 3c9)
24202419
24212420
=head2 infix C«...»
2422-
X<|...,operators>X<|...^,operators>X<|…,operators>X<|…^,operators>X<|lazy list,…>
2421+
X<|...,operators>X<|...^,operators>X<|…,operators>X<|…^,operators>
2422+
X<|lazy list,…>
24232423
24242424
multi sub infix:<...>(**@) is assoc<list>
24252425
multi sub infix:<...^>(**@) is assoc<list>
@@ -2428,11 +2428,11 @@ The X<sequence operator>, which can be written either as C<...> or as
24282428
C<> (with variants C<...^> and C<…^>) will produce (possibly lazy)
24292429
generic sequences on demand.
24302430
2431-
The left-hand side will always include the initial elements; it may
2432-
include a generator too. The right-hand side will have an endpoint,
2433-
which can be C<Inf> or C<*> for "infinite" lists (that is, I<lazy> lists
2434-
whose elements are only produced on demand), an expression which will
2435-
end the sequence when C<True>, or other elements such as
2431+
The left-hand side will always include the initial elements; it may include a
2432+
generator too (after the first element or elements). The right-hand side will
2433+
have an endpoint, which can be C<Inf> or C<*> for "infinite" lists (that is,
2434+
I<lazy> lists whose elements are only produced on demand), an expression which
2435+
will end the sequence when C<True>, or other elements such as
24362436
L<Junctions|/type/Junction>.
24372437
24382438
The sequence operator invokes the generator with as many arguments as necessary.

doc/Language/variables.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,8 +1223,8 @@ sub module-source {
12231223
12241224
=head2 Dynamic variables
12251225
1226-
All dynamically scoped variables have the C<*> twigil, and their name is written
1227-
in uppercase.
1226+
All dynamically scoped variables have the C<*> twigil, and their name is
1227+
(conventionally) written in uppercase.
12281228
12291229
X<|$*ARGFILES>X<|@*ARGS>
12301230
=head3 Argument related variables

doc/Type/IO/ArgFiles.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
77
class IO::ArgFiles is IO::CatHandle { }
88
9-
This class exists for backwards compatibility reasons and provides no methods.
10-
All the functionality is inherited from L<IO::CatHandle>. It can be used, for
11-
instance, this way:
9+
This class exists for backwards compatibility reasons and provides no additional
10+
methods to the base class. All the functionality is inherited from
11+
L<IO::CatHandle>. It can be used, for instance, this way:
1212
1313
=for code
1414
my $argfiles = IO::ArgFiles.new(@*ARGS);
@@ -27,10 +27,10 @@ my $argfiles = IO::CatHandle.new(@*ARGS);
2727
2828
=head2 C<$*ARGFILES>
2929
30-
This class is the magic behind the C<$*ARGFILES> variable, which
31-
provides a way to iterate over files passed in to the program on the command
32-
line (i.e. elements of L<C«@*ARGS»|/language/variables#index-entry-%40%2AARGS>).
33-
Thus the examples above can be simplified like so:
30+
This class is the magic behind the C<$*ARGFILES> variable, which provides a way
31+
to iterate over files passed in to the program on the command line (i.e.
32+
elements of L<C«@*ARGS»|/language/variables#index-entry-%40%2AARGS>). Thus the
33+
examples above can be simplified like so:
3434
3535
.say for $*ARGFILES.lines;
3636
@@ -42,7 +42,7 @@ Thus the examples above can be simplified like so:
4242
# or
4343
say $*ARGFILES.slurp;
4444
45-
Save one of the variations in a file, say C<argfiles.p6>. Then create
45+
Save one of the variations above in a file, say C<argfiles.p6>. Then create
4646
another file (named, say C<sonnet18.txt> with the contents:
4747
4848
=for code :lang<text>

0 commit comments

Comments
 (0)