Skip to content

Commit fafd286

Browse files
authored
doc operators' ASCII/Unicode variants
fix #1560
1 parent 5e65409 commit fafd286

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

doc/Language/operators.pod6

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ with C<R>. Associativity of operands is reversed as well.
240240
241241
=head1 X<<<Hyper Operators|hyper,<<;hyper,>>;hyper,«;hyper,»>>>
242242
243+
Hyper Operators include C<«> and C<»>, with their ASCII variants C«<<»
244+
and C«>>».
245+
243246
Hyper operators apply a given operator enclosed by C<«> and C<»> to one or two
244247
lists, returning the resulting list. The pointy part of C<«> or C<»> has to
245248
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.
16601663
multi sub infix:<=~=>(Complex:D, Complex:D)
16611664
multi sub infix:<=~=>(Numeric:D, Numeric:D)
16621665
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 ± Δ):
16681672
16691673
my $x = 1;
16701674
say ($x + $*TOLERANCE) =~= $x; # OUTPUT: «False␤»

0 commit comments

Comments
 (0)