Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
.invert must return a flat list of pairs
  • Loading branch information
TimToady committed Apr 2, 2015
1 parent 5e842d6 commit a4fd3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -604,7 +604,7 @@ my class List does Positional { # declared in BOOTSTRAP
}

multi method invert(List:D:) {
self.map: { .value »=>» .key }
self.map({ nqp::decont(.value) »=>» .key }).flat
}

method reduce(List: &with) {
Expand Down

0 comments on commit a4fd3da

Please sign in to comment.