Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
optimize latest patch to Match.caps, lizmat++
  • Loading branch information
FROGGS committed May 6, 2015
1 parent 8dcef45 commit 4752e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Match.pm
Expand Up @@ -40,8 +40,8 @@ my class Match is Capture is Cool {
for self.pairs -> $p {
if nqp::istype($p.value,Array) {
@caps.push: $p.key => $_ for $p.value.list
} else {
@caps.push: $p if $p.value.DEFINITE
} elsif $p.value.DEFINITE {
@caps.push: $p
}
}
@caps.sort: -> $p { $p.value.from }
Expand Down

0 comments on commit 4752e70

Please sign in to comment.