Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify List.kv
  • Loading branch information
moritz committed Aug 9, 2009
1 parent 7d06fad commit 75d2b7d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/setting/Any-list.pm
Expand Up @@ -86,14 +86,7 @@ class Any is also {
}
our List multi method kv() {
my $i=0;
gather {
for @.list -> $value {
take 0+$i;
take $value;
++$i
}
}
@.keys Z @.values
}
multi method reduce(Code $expression is rw) {
Expand Down

0 comments on commit 75d2b7d

Please sign in to comment.