@@ -1592,8 +1592,8 @@ The tolerance is supposed to be modifiable via an adverb:
1592
1592
1593
1593
= comment RT #128210
1594
1594
= begin code :skip-test
1595
- my ($x, $y) = 42, 42.1;
1596
- say $x =~= $y :tolerance(.1);
1595
+ my ($x, $y) = 42, 42.1;
1596
+ say $x =~= $y :tolerance(.1);
1597
1597
= end code
1598
1598
1599
1599
however, this is not yet implemented. The same effect can be achieved by
@@ -1688,7 +1688,7 @@ returns the C<$false> branch.
1688
1688
= head2 infix C « ff »
1689
1689
1690
1690
= begin code :skip-test
1691
- sub infix:<ff>(Mu $a, Mu $b)
1691
+ sub infix:<ff>(Mu $a, Mu $b)
1692
1692
= end code
1693
1693
1694
1694
X < Flipflop operator > .
@@ -1702,22 +1702,22 @@ is the "stop" condition. This construct is typically used to pick up only a
1702
1702
certain section of lines. For example:
1703
1703
1704
1704
= begin code :allow<B V>
1705
- my $excerpt = q:to/END/;
1706
- Here's some unimportant text.
1707
- V < = > begin code
1708
- This code block is what we're after.
1709
- We'll use 'ff' to get it.
1710
- V < = > end code
1711
- More unimportant text.
1712
- END
1713
-
1714
- my @codelines = gather for $excerpt.lines {
1715
- take $_ if B < "=begin code" ff "=end code" >
1716
- }
1705
+ my $excerpt = q:to/END/;
1706
+ Here's some unimportant text.
1707
+ V < = > begin code
1708
+ This code block is what we're after.
1709
+ We'll use 'ff' to get it.
1710
+ V < = > end code
1711
+ More unimportant text.
1712
+ END
1713
+
1714
+ my @codelines = gather for $excerpt.lines {
1715
+ take $_ if B < "=begin code" ff "=end code" >
1716
+ }
1717
1717
1718
- # this will print four lines, starting with "=begin code" and ending with
1719
- # "=end code"
1720
- say @codelines.join("\n");
1718
+ # this will print four lines, starting with "=begin code" and ending with
1719
+ # "=end code"
1720
+ say @codelines.join("\n");
1721
1721
= end code
1722
1722
1723
1723
After matching the start condition, the operator will then match the same C < $_ >
@@ -1743,7 +1743,7 @@ This operator cannot be overloaded, as it is handled specially by the compiler.
1743
1743
= head2 infix C « ^ff »
1744
1744
1745
1745
= begin code :skip-test
1746
- sub infix:<^ff>(Mu $a, Mu $b)
1746
+ sub infix:<^ff>(Mu $a, Mu $b)
1747
1747
= end code
1748
1748
1749
1749
Works like L < C < ff > > , except it does not return C < True > for items matching the
@@ -2149,8 +2149,8 @@ Reduction operators have the same associativity as the operators they are based
2149
2149
2150
2150
= begin code
2151
2151
2152
- say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
2153
- say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
2152
+ say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
2153
+ say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
2154
2154
2155
2155
= end code
2156
2156
0 commit comments