Skip to content

Commit 0f8387b

Browse files
committed
Added index terms for doc/Langualge/setbagmix.pod
1 parent e9483ab commit 0f8387b

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

doc/Language/setbagmix.pod

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,24 @@ only C<Set> arguments.
9898
multi sub infix:<(elem)>($a, Any $b --> Bool)
9999
multi sub infix:<(elem)>($a, Set $b --> Bool)
100100
101+
X<Membership operator>.
102+
101103
Returns C<True> if C<$a> is an B<element> of C<$b>.
102104
103105
=head4 infix ∈
104106
105107
only sub infix:<<"∈">>($a, $b --> Bool)
106108
109+
X<Membership operator> (alternate).
110+
107111
Equivalent to L«(elem)», at codepoint U+2208 (ELEMENT OF).
108112
109113
=head4 infix ∉
110114
111115
only sub infix:<<"∉">>($a, $b --> Bool)
112116
117+
X<Non-membership operator>.
118+
113119
Equivalent to C<!(elem)>, i.e., returns C<True> if C<$a> is not an element
114120
of C<$b>, at codepoint U+2209 (NOT AN ELEMENT OF).
115121
@@ -118,18 +124,24 @@ of C<$b>, at codepoint U+2209 (NOT AN ELEMENT OF).
118124
multi sub infix:<(cont)>(Any $a, $b --> Bool)
119125
multi sub infix:<(cont)>(Set $a, $b --> Bool)
120126
127+
X<Contains operator>.
128+
121129
Returns C<True> if C<$a> B<contains> C<$b> as an element.
122130
123131
=head4 infix ∋
124132
125133
only sub infix:<<"∋">>($a, $b --> Bool)
126134
135+
X<Contains operator> (alternate).
136+
127137
Equivalent to L«(cont)», at codepoint U+220B (CONTAINS AS MEMBER).
128138
129139
=head4 infix ∌
130140
131141
only sub infix:<<"∌">>($a, $b --> Bool)
132142
143+
X<Does not contain operator>.
144+
133145
Equivalent to C<!(cont)>, i.e., returns C<True> if C<$a> does not contain
134146
C<$b>, at codepoint U+220C (DOES NOT CONTAIN AS MEMBER).
135147
@@ -138,6 +150,8 @@ C<$b>, at codepoint U+220C (DOES NOT CONTAIN AS MEMBER).
138150
multi sub infix:<<(<=)>>(Any $a, Any $b --> Bool)
139151
multi sub infix:<<(<=)>>(Setty $a, Setty $b --> Bool)
140152
153+
X<Subset of or equal to operator>.
154+
141155
Returns C<True> if C<$a> is a B<subset> or is equal to C<$b>, i.e., if all
142156
the elements of C<$a> are elements of C<$b> and C<$a> is a smaller or equal
143157
sized set than C<$b>.
@@ -146,19 +160,25 @@ sized set than C<$b>.
146160
147161
only sub infix:<<"⊆">>($a, $b --> Bool)
148162
163+
X<Subset of or equal to operator> (alternate).
164+
149165
Equivalent to L«(<=)», at codepoint U+2286 (SUBSET OF OR EQUAL TO).
150166
151167
=head4 infix ⊈
152168
153169
only sub infix:<<"⊈">>($a, $b --> Bool)
154170
171+
X<Neither subset of nor equal to operator>.
172+
155173
Equivalent to C«!(<=)», at codepoint U+2288 (NEITHER A SUBSET OF NOR EQUAL TO).
156174
157175
=head3 infix (<)
158176
159177
multi sub infix:<<(<)>>(Any $a, Any $b --> Bool)
160178
multi sub infix:<<(<)>>(Setty $a, Setty $b --> Bool)
161179
180+
X<Subset of operator>.
181+
162182
Returns C<True> if C<$a> is a B<strict subset> of C<$b>, i.e., that all the
163183
elements of C<$a> are elements of C<$b> but C<$a> is a smaller set than
164184
C<$b>.
@@ -167,32 +187,42 @@ C<$b>.
167187
168188
only sub infix:<<"⊂">>($a, $b --> Bool)
169189
190+
X<Subset of operator> (alternate).
191+
170192
Equivalent to L«(<)», at codepoint U+2282 (SUBSET OF).
171193
172194
=head4 infix ⊄
173195
174196
only sub infix:<<"⊄">>($a, $b --> Bool)
175197
198+
X<Not a subset of operator>.
199+
176200
Equivalent to C«!(<)», at codepoint U+2284 (NOT A SUBSET OF).
177201
178202
=head3 infix (>=)
179203
180204
multi sub infix:<<(>=)>>(Any $a, Any $b --> Bool)
181205
multi sub infix:<<(>=)>>(Setty $a, Setty $b --> Bool)
182206
207+
X<Superset of or equal to operator>.
208+
183209
Like L«(<=)» with reversed arguments. Returns C<True> if C<$a> is a
184210
B<superset> of or equal to C<$b>.
185211
186212
=head4 infix ⊇
187213
188214
only sub infix:<<"⊇">>($a, $b --> Bool)
189215
216+
X<Superset of or equal to operator> (alternate).
217+
190218
Equivalent to L«(>=)», at codepoint U+2287 (SUPERSET OF OR EQUAL TO).
191219
192220
=head4 infix ⊉
193221
194222
only sub infix:<<"⊉">>($a, $b --> Bool)
195223
224+
X<Neither a superset of nor equal to operator>.
225+
196226
Equivalent to C«!(>=)», at codepoint U+2289 (NEITHER A SUPERSET OF
197227
NOR EQUAL TO).
198228
@@ -201,26 +231,34 @@ NOR EQUAL TO).
201231
multi sub infix:<<(>)>>(Any $a, Any $b --> Bool)
202232
multi sub infix:<<(>)>>(Setty $a, Setty $b --> Bool)
203233
234+
X<Superset of operator>.
235+
204236
Like L«(<)» with reversed arguments. Returns C<True> if C<$a> is a
205237
B<strict superset> of C<$b>.
206238
207239
=head4 infix ⊃
208240
209241
only sub infix:<<"⊃">>($a, $b --> Bool)
210242
243+
X<Superset of operator> (alternate).
244+
211245
Equivalent to L«(>)», at codepoint U+2283 (SUPERSET OF).
212246
213247
=head4 infix ⊅
214248
215249
only sub infix:<<"⊅">>($a, $b --> Bool)
216250
251+
X<Not a superset of operator>.
252+
217253
Equivalent to C«!(>)», at codepoint U+2285 (NOT A SUPERSET OF).
218254
219255
=head3 infix (<+)
220256
221257
multi sub infix:<<(<+)>>(Any $a, Any $b --> Bool)
222258
multi sub infix:<<(<+)>>(Baggy $a, Baggy $b --> Bool)
223259
260+
X<Baggy subset of operator>.
261+
224262
Returns C<True> if C<$a> is a Baggy B<subset> of C<$b>, i.e., if all the
225263
elements of C<$a> are in C<$b> and each element of C<$b> is weighed at
226264
least as heavily as the element is in C<$a>.
@@ -229,13 +267,17 @@ least as heavily as the element is in C<$a>.
229267
230268
only sub infix:<<"≼">>($a, $b --> Bool)
231269
270+
X<Baggy subset of operator> (alternate).
271+
232272
Equivalent to L«(<+)», at codepoint U+227C (PRECEDES OR EQUAL TO).
233273
234274
=head3 infix (>+)
235275
236276
multi sub infix:<<(>+)>>(Baggy $a, Baggy $b --> Bool)
237277
multi sub infix:<<(>+)>>(Any $a, Any $b --> Bool)
238278
279+
X<Baggy superset of operator>.
280+
239281
Returns C<True> if C<$a> is a Baggy B<superset> of C<$b>, i.e., if all the
240282
elements of C<$b> are in C<$a> and no element of C<$b> is weighted heavier
241283
than that element is in C<$a>.
@@ -244,6 +286,8 @@ than that element is in C<$a>.
244286
245287
only sub infix:<<"≽">>($a, $b --> Bool)
246288
289+
X<Baggy superset of operator> (alternate).
290+
247291
Equivalent to L«(+>)», at codepoint U+227D (SUCCEEDS OR EQUAL TO).
248292
249293
=head2 Operators that return C<Set> or C<Bag>
@@ -252,6 +296,9 @@ Equivalent to L«(+>)», at codepoint U+227D (SUCCEEDS OR EQUAL TO).
252296
253297
only sub infix:<(|)>(**@p)
254298
299+
300+
X<Union operator>.
301+
255302
Returns the B<union> of all its arguments. Generally, this creates a new
256303
C<Set> that contains all the elements its arguments contain.
257304
@@ -267,12 +314,16 @@ appeared for that element.
267314
268315
only sub infix:<<"∪">>(|p)
269316
317+
X<Union operator> (alternate).
318+
270319
Equivalent to L«(V<|>)», at codepoint U+222A (UNION).
271320
272321
=head3 infix (&)
273322
274323
only sub infix:<(&)>(**@p)
275324
325+
X<Intersection operator>.
326+
276327
Returns the B<intersection> of all of its arguments. Generally, this creates
277328
a new C<Set> that contains only the elements common to all of the arguments.
278329
@@ -289,12 +340,17 @@ is the minimum of the weights of that element over all arguments).
289340
290341
only sub infix:<<"∩">>(|p)
291342
343+
X<Intersection operator> (alternate).
344+
292345
Equivalent to L«(&)», at codepoint U+2229 (INTERSECTION).
293346
294347
=head3 infix (-)
295348
296349
only sub infix:<(-)>(**@p)
297350
351+
352+
X<Set difference operator>.
353+
298354
Returns the B<set difference> of all its arguments. Generally, this returns
299355
the C<Set> made up of all the elements the first argument has but the rest
300356
don't, i.e., of all the elements of the first argument, minus the elements
@@ -311,13 +367,18 @@ that element in each of the other arguments.
311367
312368
only sub infix:<<"\x2216">>(|p)
313369
370+
X<Set difference operator> (alternate).
371+
314372
Equivalent to L«(-)».
315373
316374
=head3 infix (^)
317375
318376
multi sub infix:<(^)>(Any $a, Any $b --> Setty)
319377
multi sub infix:<(^)>(Set $a, Set $b --> Setty)
320378
379+
380+
X<Symmetric set difference operator>.
381+
321382
Returns the B<symmetric set difference> of all its arguments, i.e., a C<Set>
322383
made up of all the elements that C<$a> has but C<$b> doesn't and all the
323384
elements C<$b> has but C<$a> doesn't. Equivalent to C<($a ∖ $b) ∪ ($b ∖
@@ -327,12 +388,16 @@ $a)>.
327388
328389
only sub infix:<<"⊖">>($a, $b --> Setty)
329390
391+
X<Symmetric set difference operator> (alternate).
392+
330393
Equivalent to L«(^)», at codepoint U+2296 (CIRCLED MINUS).
331394
332395
=head3 infix (.)
333396
334397
only sub infix:<(.)>(**@p)
335398
399+
X<Baggy multiplication operator>.
400+
336401
Returns the Baggy B<multiplication> of its arguments, i.e., a C<Bag> that
337402
contains each element of the arguments with the weights of the element
338403
across the arguments multiplied together to get the new weight.
@@ -344,12 +409,16 @@ across the arguments multiplied together to get the new weight.
344409
345410
only sub infix:<<"⊍">>(|p)
346411
412+
X<Baggy multiplication operator> (alternate).
413+
347414
Equivalent to L«(.)», at codepoint U+228D (MULTISET MULTIPLICATION).
348415
349416
=head3 infix (+)
350417
351418
only sub infix:<(+)>(**@p)
352419
420+
X<Baggy addition operator>.
421+
353422
Returns the Baggy B<addition> of its arguments, i.e., a C<Bag> that contains
354423
each element of the arguments with the weights of the element across the
355424
arguments added together to get the new weight.
@@ -361,10 +430,12 @@ arguments added together to get the new weight.
361430
362431
only sub infix:<<"⊎">>(|p)
363432
433+
X<Baggy addition operator> (alternate).
434+
364435
Equivalent to L«(+)», at codepoint U+228E (MULTISET UNION).
365436
366437
=head3 term ∅
367438
368-
Equivalent to set(), aka the empty set, at codepoint U+2205 (EMPTY SET).
439+
Equivalent to set(), aka X<the empty set>, at codepoint U+2205 (EMPTY SET).
369440
370441
=end pod

0 commit comments

Comments
 (0)