Skip to content

Commit

Permalink
Revert "Fix &list(Seq:D) to produce a List"
Browse files Browse the repository at this point in the history
This reverts commit 1d772dc.

This was eventually deemed not the right course of action:
https://irclog.perlgeek.de/perl6-dev/2017-12-31#i_15636448
  • Loading branch information
zoffixznet committed Dec 31, 2017
1 parent 27fbd7a commit d78297f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/List.pm
Expand Up @@ -1535,8 +1535,7 @@ sub permutations(Int() $n) {
Seq.new(Rakudo::Iterator.Permutations($n,0))
}

multi list(+l) { l }
multi list(Seq:D \seq) { seq.list }
sub list(+l) { l }

# Use **@list and then .flat it, otherwise we'll end up remembering all the
# things we flatten, which would be different semantics to .flat which gives
Expand Down

0 comments on commit d78297f

Please sign in to comment.