Skip to content

Commit 8b066e3

Browse files
committed
===== in Bag.pod
`==` is numeric comparison. `===` does what we want here.
1 parent f262137 commit 8b066e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Bag.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ An immutable collection of weighted values. These weights are always
88
integers, and can be accessed with the C<{ }> postcircumfix. For a
99
mutable collection of weighted values, see L<BagHash>.
1010
11-
bag('a', 'b', 'c', 'a', 'd', 'a')<a> == 3
11+
bag('a', 'b', 'c', 'a', 'd', 'a')<a> === 3
1212
1313
=head1 Operators
1414
@@ -27,7 +27,7 @@ C<Baggy>, it creates a new C<Bag> that contains all the elements of the
2727
arguments, each weighed by the highest weight that appeared for that
2828
element.
2929
30-
bag(<a a b c a>) (|) bag(<a a b c c>) == bag(<a a a b c c>)
30+
bag(<a a b c a>) (|) bag(<a a b c c>) === bag(<a a a b c c>)
3131
3232
=head2 infix ∪
3333
@@ -44,7 +44,7 @@ are C<Baggy>, this creates a new C<Bag> that contains only the elements
4444
that all of the arguments contain, each weighted the max weight all of
4545
the arguments share for that element.
4646
47-
bag(<a a b c a>) (&) bag(<a a b c c>) == bag(<a a b c>)
47+
bag(<a a b c a>) (&) bag(<a a b c c>) === bag(<a a b c>)
4848
4949
=head2 infix ∩
5050
@@ -76,7 +76,7 @@ Returns a C<Bag> that contains each element of the arguments with the
7676
weights of the element across the arguments multiplied together to get
7777
the new weight.
7878
79-
bag(<a a b c a d>) (.) bag(<a a b c c>) == bag(<a a a a a a b c c>)
79+
bag(<a a b c a d>) (.) bag(<a a b c c>) === bag(<a a a a a a b c c>)
8080
8181
=head2 infix ⊍
8282
@@ -92,7 +92,7 @@ Returns a C<Bag> that contains each element of the arguments with the
9292
weights of the element across the arguments added together to get
9393
the new weight.
9494
95-
bag(<a a b c a d>) (.) bag(<a a b c c>) == bag(<a a a a a b b c c c d>)
95+
bag(<a a b c a d>) (.) bag(<a a b c c>) === bag(<a a a a a b b c c c d>)
9696
9797
9898
=head2 infix ⊎

0 commit comments

Comments
 (0)