@@ -2328,8 +2328,8 @@ L<traps|/language/traps#Loose_boolean_operators>.
2328
2328
2329
2329
multi sub prefix:<so>(Mu $x --> Bool:D)
2330
2330
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.
2333
2333
2334
2334
= head1 Comma operator precedence
2335
2335
@@ -2346,11 +2346,12 @@ Constructs a higher-order L<Cool|/type/Cool> from its arguments.
2346
2346
my %a = :11a, :22b;
2347
2347
say %(%a, :33x); # OUTPUT: «{a => 11, b => 22, x => 33}»
2348
2348
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 > .
2351
2351
2352
2352
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 > :
2354
2355
2355
2356
= begin code :preamble<my %hash>
2356
2357
my %features = %hash, :wields("hammer");
@@ -2378,11 +2379,9 @@ other positions, it's a syntax error.
2378
2379
2379
2380
sub infix:<Z>(**@lists --> Seq:D) is assoc<chain>
2380
2381
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.
2386
2385
2387
2386
= for code
2388
2387
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:
2419
2418
# produces (1a9 1b9 1c9 2a9 2b9 2c9 3a9 3b9 3c9)
2420
2419
2421
2420
= 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,… >
2423
2423
2424
2424
multi sub infix:<...>(**@) is assoc<list>
2425
2425
multi sub infix:<...^>(**@) is assoc<list>
@@ -2428,11 +2428,11 @@ The X<sequence operator>, which can be written either as C<...> or as
2428
2428
C < … > (with variants C < ...^ > and C < …^ > ) will produce (possibly lazy)
2429
2429
generic sequences on demand.
2430
2430
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
2436
2436
L < Junctions|/type/Junction > .
2437
2437
2438
2438
The sequence operator invokes the generator with as many arguments as necessary.
0 commit comments