Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update classify() example output
  • Loading branch information
Paul Cochrane committed May 7, 2015
1 parent b371543 commit c092762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Type/List.pod
Expand Up @@ -189,9 +189,9 @@ of the associated key.
Example:
say classify { $_ %% 2 ?? 'even' !! 'odd' }, (1, 7, 6, 3, 2);
# ("odd" => [1, 7, 3], "even" => [6, 2]).hash;;
say ('hello', 1, 22/7, 42, 'world').classify: { .Str.chars }
# ("5" => ["hello", "world"], "1" => [1], "8" => [22/7], "2" => [42]).hash
#-> even => 6 2, odd => 1 7 3
say ('hello', 1, 22/7, 42, 'world').classify: { .Str.chars };
#-> 1 => 1, 2 => 42, 5 => hello world, 8 => 3.142857
=head2 method Bool
Expand Down

0 comments on commit c092762

Please sign in to comment.