From d78297fcf4369bbdebbc3289e8d773b7a890cc51 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 31 Dec 2017 02:36:07 -0500 Subject: [PATCH] Revert "Fix &list(Seq:D) to produce a List" This reverts commit 1d772dc002e2740ffb744d5e210d5e15e04a1c1f. This was eventually deemed not the right course of action: https://irclog.perlgeek.de/perl6-dev/2017-12-31#i_15636448 --- src/core/List.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/List.pm b/src/core/List.pm index 97c5bf1f7b1..2e67a22f3d9 100644 --- a/src/core/List.pm +++ b/src/core/List.pm @@ -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