Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup as per pmichaud++'s comment
  • Loading branch information
patrickas authored and moritz committed Sep 6, 2010
1 parent b736c88 commit 0a93184
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/operators.pm
Expand Up @@ -451,12 +451,10 @@ our multi sub infix:<...>(@lhs, @rhs is copy) {
}

our multi sub infix:<...^>($lhs, $rhs) {
my @all := ($lhs ... $rhs);
return Nil unless defined @all[0];
my $all = ($lhs ... $rhs);
gather {
loop {
last unless defined @all[0];
my $current = @all.shift() ;
while ($all) {
my $current = $all.shift() ;
last if $current eqv $rhs ;
take $current;
}
Expand Down

0 comments on commit 0a93184

Please sign in to comment.