Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
For some reason, one must specify $_ here? Otherwise:
No such method 'key' for invocant of type 'Nil'
  in method pick at src/gen/CORE.setting:15268
  in block  at t/spec/S02-types/bag.rakudo.parrot:281
  • Loading branch information
lizmat committed Oct 4, 2013
1 parent 01c2e2a commit 0a2efdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Baggy.pm
Expand Up @@ -85,7 +85,7 @@ my role Baggy does QuantHash {
my $picks = $total min $count;
my @pairs := $BIND
?? %!elems.values
!! %!elems.values.map( { .key => .value } );
!! %!elems.values.map( { $_.key => $_.value } );

map {
my $rand = $total.rand.Int;
Expand Down

0 comments on commit 0a2efdb

Please sign in to comment.