Skip to content

Commit 2acbd58

Browse files
committed
Elaborate on Hash.classify and Hash.categorize, suggested by masak++
1 parent f670ef1 commit 2acbd58

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

S32-setting-library/Containers.pod

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,17 +1010,19 @@ to the original hash.
10101010
multi method classify ( Hash: %mapper, *@values --> Hash )
10111011
multi method classify ( Hash: @mapper, *@values --> Hash )
10121012

1013-
Same as L<List>'s C<classify>, but allows consecutive runs to be applied to the
1014-
same hash.
1013+
Basically has the same functionality as L<List>'s C<classify>, but called as a
1014+
method on the Hash that is also returned. This allows multiple calls to add
1015+
data to the same Hash.
10151016

10161017
=item categorize
10171018

10181019
multi method categorize ( Hash: &mapper, *@values --> Hash )
10191020
multi method categorize ( Hash: %mapper, *@values --> Hash )
10201021
multi method categorize ( Hash: @mapper, *@values --> Hash )
10211022

1022-
Same as L<List>'s C<categorize>, but allows consecutive runs to be applied to
1023-
the same hash.
1023+
Basically has the same functionality as L<List>'s C<categorize>, but called as a
1024+
method on the Hash that is also returned. This allows multiple calls to add
1025+
data to the same Hash.
10241026

10251027
=back
10261028

0 commit comments

Comments
 (0)