Skip to content

Commit 9f194bf

Browse files
committed
Finish bare-bones documentation for Set operators
1 parent 2e116e2 commit 9f194bf

File tree

1 file changed

+63
-5
lines changed

1 file changed

+63
-5
lines changed

lib/Set.pod

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ Equivalent to L«infix:<(-)>».
115115
multi sub infix:<(^)>(Any $a, Any $b --> Setty)
116116
multi sub infix:<(^)>(Set $a, Set $b --> Setty)
117117
118-
Returns the C<Set> made up of all the elements that $a has but $b
119-
doesn't and all the elements $b has but $a doesn't. Equivalent to
118+
Returns the C<Set> made up of all the elements that C<$a> has but C<$b>
119+
doesn't and all the elements C<$b> has but C<$a> doesn't. Equivalent to
120120
C<($a ∖ $b) ∪ ($b ∖ $a)>.
121121
122122
=head2 infix:<⊖>
@@ -125,28 +125,86 @@ C<($a ∖ $b) ∪ ($b ∖ $a)>.
125125
126126
Equivalent to L«infix:<(^)>»
127127
128-
=head2 infix:<(<=)>
128+
=head2 infix:<<(<=)>>
129+
130+
multi sub infix:<<(<=)>>(Any $a, Any $b --> Bool)
131+
multi sub infix:<<(<=)>>(Setty $a, Setty $b --> Bool)
132+
133+
Returns C<True> if C<$a> is a subset or is equal to C<$b>, i.e., if all the
134+
elements of C<$a> are elements of C<$b>, and C<$a> is a smaller or equal
135+
sized set than C<$b>.
129136
130137
=head2 infix:<⊆>
131138
139+
only sub infix:<<"\x2286">>($a, $b --> Bool)
140+
141+
Equivalent to L«infix:<(<=)>».
142+
132143
=head2 infix:<⊈>
133144
134-
=head2 infix:<(<)>
145+
only sub infix:<<"\x2288">>($a, $b --> Bool)
146+
147+
Equivalent to C«!(<=)».
148+
149+
=head2 infix:<<(<)>>
150+
151+
multi sub infix:<<(<)>>(Any $a, Any $b --> Bool)
152+
multi sub infix:<<(<)>>(Setty $a, Setty $b --> Bool)
153+
154+
Returns C<True> if C<$a> is a strict subset of C<$b>, i.e., that all the
155+
elements of C<$a> are elements of C<$b>, but C<$a> is a smaller set than
156+
C<$b>.
135157
136158
=head2 infix:<⊂>
137159
160+
only sub infix:<<"\x2282">>($a, $b --> Bool)
161+
162+
Equivalent to L«infix:<<(<)>>».
163+
138164
=head2 infix:<⊄>
139165
166+
only sub infix:<<"\x2284">>($a, $b --> Bool)
167+
168+
Equivalent to C«!(<)».
169+
140170
=head2 infix:<(>=)>
141171
172+
multi sub infix:<<(>=)>>(Any $a, Any $b --> Bool)
173+
multi sub infix:<<(>=)>>(Setty $a, Setty $b --> Bool)
174+
175+
Like L«infix:<(<=)>» with reversed arguments. Returns C<True> if C<$b>
176+
is a subset of or equal to C<$a>.
177+
142178
=head2 infix:<⊇>
143179
180+
only sub infix:<<"\x2287">>($a, $b --> Bool)
181+
182+
Equivalent to L«infix:<<(>=)>>».
183+
144184
=head2 infix:<⊉>
145185
146-
=head2 infix:<(>)>
186+
only sub infix:<<"\x2289">>($a, $b --> Bool)
187+
188+
Equivalent to C«!(>=)».
189+
190+
=head2 infix:<<(>)>>
191+
192+
multi sub infix:<<(>)>>(Any $a, Any $b --> Bool)
193+
multi sub infix:<<(>)>>(Setty $a, Setty $b --> Bool)
194+
195+
Like L«infix:<(<)>» with reversed arguments. Returns C<True> if C<$b>
196+
is a strict subset of C<$a>.
147197
148198
=head2 infix:<⊃>
149199
200+
only sub infix:<<"\x2283">>($a, $b --> Bool)
201+
202+
Equivalent to L«infix:<<(>)>>».
203+
150204
=head2 infix:<⊅>
151205
206+
only sub infix:<<"\x2285">>($a, $b --> Bool)
207+
208+
Equivalent to C«!(>)».
209+
152210
=end pod

0 commit comments

Comments
 (0)