Skip to content

Commit

Permalink
don't use $_ two different ways
Browse files Browse the repository at this point in the history
previous .gist patch did just that, TimToady--
  • Loading branch information
TimToady committed Aug 29, 2014
1 parent 9a9da9f commit 1ff1d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,11 @@ my class List does Positional { # declared in BOOTSTRAP
}

multi method gist(List:D:) {
join ' ', @(self).map: {
join ' ', @(self).map: -> $elem {
given ++$ {
when 101 { '...' }
when 102 { last }
default {$_.gist}
default { $elem.gist }
}
}
}
Expand Down

0 comments on commit 1ff1d30

Please sign in to comment.