From 633b099130214958486fc1ffac1c3f9c68d30ef2 Mon Sep 17 00:00:00 2001 From: Aleks-Daniel Jakimenko-Aleksejev Date: Sat, 4 Aug 2018 05:06:26 +0300 Subject: [PATCH] Make tests pass by making stuff eager It looks like rakudo used to return a List there, but now it returns a Seq. For some reason (maybe a good one) tests are trying to ensure that a List is returned, so I added `eager` to satisfy that. That being said, I think some of these tests should be dropped. --- lib/List/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/List/Utils.pm b/lib/List/Utils.pm index c10c145..260e8a5 100644 --- a/lib/List/Utils.pm +++ b/lib/List/Utils.pm @@ -61,7 +61,7 @@ multi sub combinations(@items, $count) is export { my $size = +@items; my $top = $size - $count; my @indicies = (^$count).list; - gather loop { + eager gather loop { # TODO should it be eager? take [@items[@indicies]]; last if !@indicies || @indicies[0] == $top; for $count - 1 ... 0 -> $i {