Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
couple of buglets in previous patch
  • Loading branch information
TimToady committed Aug 19, 2014
1 parent f532c1d commit 6e536ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm
Expand Up @@ -630,10 +630,10 @@ multi infix:<xx>(Mu \x, $n is copy, :$thunked!) {
GatherIter.new({ take x.() while --$n >= 0; }, :infinite($n == Inf)).list
}
multi infix:<xx>(Mu \x, Whatever) {
my \batch = x xx 100;
GatherIter.new({ loop { take batch } }, :infinite(True)).flat
GatherIter.new({ loop { take x } }, :infinite(True)).flat
}
multi infix:<xx>(Mu \x, $n is copy) {
$n = $n.Int;
if $n <= 10 {
GatherIter.new({ take x while --$n >= 0; }).list
}
Expand Down

0 comments on commit 6e536ac

Please sign in to comment.