Skip to content

Commit 0bc0b8b

Browse files
authored
Fix setbagmix (#4633)
* Add missing ASCII examples for the Unicode Set, Bag, and Mix operators + addresses doc issue #4629
1 parent 24355d0 commit 0bc0b8b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

doc/Language/setbagmix.rakudoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ L<Set Theory|https://en.wikipedia.org/wiki/Set_theory>.
8989

9090
These infixes can be written using the Unicode character that represents the
9191
function (like C<∈> or C<∪>), or with an equivalent ASCII version (like
92-
C<(elem)> or C<(|)>).
92+
C<(elem)> or C<(|)>). Prefix the ASCII version with C<!> to negate it
93+
(like C<!(elem)> or C<!(|)>).
9394

9495
So explicitly using L<C<Set>|/type/Set> (or L<C<Bag>|/type/Bag> or L<C<Mix>|/type/Mix>) objects with these infixes is
9596
unnecessary. All set operators work with all possible arguments, including
@@ -108,7 +109,7 @@ Returns C<True> if C<$a> is an B<element> of C<$b>, else C<False>.
108109
L<More information|/language/operators#infix_(elem),_infix_∈>,
109110
L<Wikipedia definition|https://en.wikipedia.org/wiki/Element_(mathematics)#Notation_and_terminology>.
110111

111-
=head3 infix ∉
112+
=head3 infix !(elem), infix
112113

113114
Returns C<True> if C<$a> is B<not> an element of C<$b>, else C<False>.
114115
L<More information|/language/operators#infix_∉>,
@@ -120,7 +121,7 @@ Returns C<True> if C<$a> B<contains> C<$b> as an element, else C<False>.
120121
L<More information|/language/operators#infix_(cont),_infix_∋>,
121122
L<Wikipedia definition|https://en.wikipedia.org/wiki/Element_(mathematics)#Notation_and_terminology>.
122123

123-
=head3 infix ∌
124+
=head3 infix !(cont), infix
124125

125126
Returns C<True> if C<$a> does B<not> contain C<$b>, else C<False>.
126127
L<More information|/language/operators#infix_∌>,
@@ -132,7 +133,7 @@ Returns C<True> if C<$a> is a B<subset> or is equal to C<$b>, else C<False>.
132133
L<<More information|/language/operators#infix_(<=),_infix_⊆>>,
133134
L<Wikipedia definition|https://en.wikipedia.org/wiki/Subset#Definitions>.
134135

135-
=head3 infix ⊈
136+
=head3 infix !(<=), infix
136137

137138
Returns C<True> if C<$a> is B<not> a B<subset> nor equal to C<$b>, else C<False>.
138139
L<More information|/language/operators#infix_⊈>,
@@ -144,7 +145,7 @@ Returns C<True> if C<$a> is a B<strict subset> of C<$b>, else C<False>.
144145
L<<More information|/language/operators#infix_(<),_infix_⊂>>,
145146
L<Wikipedia definition|https://en.wikipedia.org/wiki/Subset#Definitions>.
146147

147-
=head3 infix ⊄
148+
=head3 infix !(<), infix
148149

149150
Returns C<True> if C<$a> is B<not> a B<strict subset> of C<$b>, else C<False>.
150151
L<More information|/language/operators#infix_⊄>,
@@ -156,7 +157,7 @@ Returns C<True> if C<$a> is a B<superset> of or equal to C<$b>, else C<False>.
156157
L«More information|/language/operators#infix_(>=),_infix_⊇»,
157158
L<Wikipedia definition|https://en.wikipedia.org/wiki/Subset#Definitions>.
158159

159-
=head3 infix ⊉
160+
=head3 infix !(>=), infix
160161

161162
Returns C<True> if C<$a> is B<not> a B<superset> nor equal to C<$b>, else C<False>.
162163
L<More information|/language/operators#infix_⊉>,
@@ -168,7 +169,7 @@ Returns C<True> if C<$a> is a B<strict superset> of C<$b>, else C<False>.
168169
L«More information|/language/operators#infix_(>),_infix_⊃»,
169170
L<Wikipedia definition|https://en.wikipedia.org/wiki/Subset#Definitions>.
170171

171-
=head3 infix ⊅
172+
=head3 infix !(>), infix
172173

173174
Returns C<True> if C<$a> is B<not> a B<strict superset> of C<$b>, else C<False>.
174175
L<More information|/language/operators#infix_⊅>,
@@ -185,7 +186,7 @@ versions of Rakudo can install the
185186
L<Set::Equality|https://raku.land/zef:lizmat/Set::Equality> module for
186187
the same functionality.
187188

188-
=head3 infix ≢
189+
=head3 infix !(==), infix
189190

190191
Returns C<True> if C<$a> and C<$b> are B<not identical>, else C<False>.
191192
L<More information|/language/operators#infix_≢>,

0 commit comments

Comments
 (0)