Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
generalize .[Whatever] case to .[Callable]
  • Loading branch information
moritz committed Aug 8, 2011
1 parent 5b9a992 commit 30a9776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any.pm
Expand Up @@ -112,7 +112,7 @@ my class Any {
?? { last if $_ >= self.gimme($_ + 1); self[$_] }
!! { self[$_] }).eager.Parcel;
}
multi method postcircumfix:<[ ]>(WhateverCode $block) is rw {
multi method postcircumfix:<[ ]>(Callable $block) is rw {
self[$block(|(self.elems xx $block.count))]
}
multi method postcircumfix:<[ ]>(Whatever) is rw {
Expand Down

0 comments on commit 30a9776

Please sign in to comment.