Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

r29145 - docs/Perl6/Spec/S32-setting-library

0 views
Skip to first unread message

pugs-c...@feather.perl6.nl

unread,
Nov 20, 2009, 8:15:02 AM11/20/09
to perl6-l...@perl.org
Author: masak
Date: 2009-11-20 14:15:01 +0100 (Fri, 20 Nov 2009)
New Revision: 29145

Modified:
docs/Perl6/Spec/S32-setting-library/Containers.pod
Log:
[S32/Containers] fixed copy/paste error

Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-11-20 08:39:12 UTC (rev 29144)
+++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-11-20 13:15:01 UTC (rev 29145)
@@ -830,8 +830,10 @@
A set of unique values. When used as a hash always treats the set's
values as the keys of the hash, returning C<True> for set elements.
See C<KeySet> for a container that can represent different sets
-as keys are added or deleted.
+as keys are added or deleted. A C<Set> responds to hash operators as
+if it were a C<Hash of True>.

+
=over

=item pick
@@ -839,11 +841,7 @@
our multi method pick ( $set: Int $num = 1, Bool :$replace )
our multi method pick ( $set: Whatever, Bool :$replace )

-Like an ordinary list pick, but returns keys of the bag weighted by
-values, as if the keys were replicated the number of times indicated
-by the corresponding value and then list pick used. C<KeySet> is the
-mutable form of C<Set>. A C<Set> responds to hash operators as
-if it were a C<Hash of True>.
+Works like an ordinaty list C<pick>.

=back

0 new messages