@@ -8,7 +8,7 @@ An immutable collection of weighted values. These weights are always
8
8
integers, and can be accessed with the C < { } > postcircumfix. For a
9
9
mutable collection of weighted values, see L < BagHash > .
10
10
11
- bag('a', 'b', 'c', 'a', 'd', 'a')<a> == 3
11
+ bag('a', 'b', 'c', 'a', 'd', 'a')<a> === 3
12
12
13
13
= head1 Operators
14
14
@@ -27,7 +27,7 @@ C<Baggy>, it creates a new C<Bag> that contains all the elements of the
27
27
arguments, each weighed by the highest weight that appeared for that
28
28
element.
29
29
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>)
31
31
32
32
= head2 infix ∪
33
33
@@ -44,7 +44,7 @@ are C<Baggy>, this creates a new C<Bag> that contains only the elements
44
44
that all of the arguments contain, each weighted the max weight all of
45
45
the arguments share for that element.
46
46
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>)
48
48
49
49
= head2 infix ∩
50
50
@@ -76,7 +76,7 @@ Returns a C<Bag> that contains each element of the arguments with the
76
76
weights of the element across the arguments multiplied together to get
77
77
the new weight.
78
78
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>)
80
80
81
81
= head2 infix ⊍
82
82
@@ -92,7 +92,7 @@ Returns a C<Bag> that contains each element of the arguments with the
92
92
weights of the element across the arguments added together to get
93
93
the new weight.
94
94
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>)
96
96
97
97
98
98
= head2 infix ⊎
0 commit comments