Skip to content

Commit

Permalink
Make $empty available in all of Rakudo::Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 17, 2017
1 parent f04b0d2 commit add53bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/Iterator.pm
Expand Up @@ -9,6 +9,7 @@
# Rakudo::Iterator, feels better.

class Rakudo::Iterator {
my $empty := nqp::list; # an empty list for nqp::splice

#-------------------------------------------------------------------------------
# Roles that are used by iterators in the rest of the core settings, in
Expand Down Expand Up @@ -1854,7 +1855,6 @@ class Rakudo::Iterator {

# Return an iterator that will roundrobin the given iterables
# (with &[,]). Basically the functionality of roundrobin(@a,@b)
my $empty := nqp::list; # an empty list for nqp::splice
method RoundrobinIterables(@iterables) {
nqp::if(
nqp::isgt_i((my int $n = @iterables.elems),1), # reifies
Expand Down

0 comments on commit add53bb

Please sign in to comment.