You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See L<Set/Bag Operators|/language/setbagmix#Set/Bag_operators> for a complete list of
100
100
set and bag operators with detailed explanations.
101
101
102
102
=head1Note on C<reverse> and ordering.
103
103
104
-
This method is inherited from L<Any|/type/Any#routine_reverse>, however, C<Mix>es do not have an inherent order and you should not trust it returning a consistent output.
104
+
BagHash inherits C<reverse> from L<Any|/type/Any#routine_reverse>,
105
+
however, C<Bag>s do not have an inherent order and you should not trust
106
+
it returning a consistent output.
107
+
108
+
If you sort a BagHash, the result is a list of pairs, at which point
Coerces the C<MixHash> to a L«C<Bag>|/type/Bag». The weights are convert to L«C<Int>|/type/Int»,
115
+
Coerces the C<MixHash> to a L«C<Bag>|/type/Bag». The weights are converted
116
+
to L«C<Int>|/type/Int»,
90
117
which means the number of keys in the resulting C<Bag> can be fewer than in the
91
118
original C<MixHash>, if any of the weights are negative or truncate to zero.
92
119
@@ -96,13 +123,16 @@ Defined as:
96
123
97
124
method BagHash (--> BagHash:D)
98
125
99
-
Coerces the C<MixHash> to a L«C<BagHash>|/type/BagHash». The weights are convert to L«C<Int>|/type/Int»,
126
+
Coerces the C<MixHash> to a L«C<BagHash>|/type/BagHash». The weights are converted
127
+
to L«C<Int>|/type/Int»,
100
128
which means the number of keys in the resulting C<BagHash> can be fewer than in the
101
129
original C<MixHash>, if any of the weights are negative or truncate to zero.
102
130
103
131
=head1Note on C<reverse> and ordering
104
132
105
-
This method is inherited from L<Any|/type/Any#routine_reverse>, however, C<Mix>es do not have an inherent order and you should not trust it returning a consistent output.
133
+
This method is inherited from L<Any|/type/Any#routine_reverse>, however,
134
+
C<Mix>es do not have an inherent order and you should not trust it returning
0 commit comments