Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix/optimize Capture.WHICH.
Accidentally relied on List.WHICH, even though it didn't mean to.
  • Loading branch information
jnthn committed Sep 4, 2015
1 parent 0802eec commit 5db6cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Capture.pm
Expand Up @@ -21,12 +21,12 @@ my class Capture { # declared in BOOTSTRAP
if !nqp::isnull($!list) && $!list {
$WHICH ~= '|';
$WHICH ~= ( '(' ~ $_.WHICH ~ ')' )
for flat $!list;
for flat nqp::hllize($!list);
}
if !nqp::isnull($!hash) && $!hash {
$WHICH ~= '|';
$WHICH ~= ( $_ ~ '(' ~ nqp::atkey($!hash, nqp::unbox_s($_)).WHICH ~ ')' )
for self.hash.keys.sort;
for nqp::hllize($!hash).keys.sort;
}
$WHICH;
}
Expand Down

0 comments on commit 5db6cbd

Please sign in to comment.