@@ -240,6 +240,9 @@ with C<R>. Associativity of operands is reversed as well.
240
240
241
241
= head1 X <<< Hyper Operators|hyper,<<;hyper,>>;hyper,«;hyper,» >>>
242
242
243
+ Hyper Operators include C < « > and C < » > , with their ASCII variants C « << »
244
+ and C « >> » .
245
+
243
246
Hyper operators apply a given operator enclosed by C < « > and C < » > to one or two
244
247
lists, returning the resulting list. The pointy part of C < « > or C < » > has to
245
248
point to the shorter list. A list with just one element is fine too. If one of
@@ -1660,11 +1663,12 @@ for the type on the right-hand side of the operator.
1660
1663
multi sub infix:<=~=>(Complex:D, Complex:D)
1661
1664
multi sub infix:<=~=>(Numeric:D, Numeric:D)
1662
1665
1663
- The X < approximately-equal operator|infix, ≅ > . Calculates the relative difference between
1664
- the left-hand and right-hand sides and returns C < True > if the difference is
1665
- less than $*TOLERANCE (which defaults to 1e-15). However, if either side is zero
1666
- then it checks that the absolute difference between the sides is less than $*TOLERANCE.
1667
- Note that this operator is not arithmetically symmetrical (doesn't do ± Δ):
1666
+ The approximately-equal operator X < C < ≅ > |infix, ≅> , whose ASCII variant is
1667
+ C < =~= > . Calculates the relative difference between the left-hand and right-hand
1668
+ sides and returns C < True > if the difference is less than $*TOLERANCE
1669
+ (which defaults to 1e-15). However, if either side is zero then it checks that
1670
+ the absolute difference between the sides is less than $*TOLERANCE. Note that
1671
+ this operator is not arithmetically symmetrical (doesn't do ± Δ):
1668
1672
1669
1673
my $x = 1;
1670
1674
say ($x + $*TOLERANCE) =~= $x; # OUTPUT: «False»
0 commit comments