Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-enable hyperop assignment metaops.
  • Loading branch information
pmichaud committed Aug 8, 2011
1 parent ff8d46f commit c49a3c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm
Expand Up @@ -131,7 +131,7 @@ class List does Positional {
}
}

method pop() {
method pop() is rw {
my $elems = self.elems;
fail '.pop from an infinite list NYI' if $!nextiter.defined;
$elems > 0
Expand Down Expand Up @@ -168,7 +168,7 @@ class List does Positional {
$rlist;
}

method shift() {
method shift() is rw {
# make sure we have at least one item, then shift+return it
self.gimme(1)
?? nqp::shift($!items)
Expand Down
4 changes: 2 additions & 2 deletions src/core/metaops.pm
Expand Up @@ -43,7 +43,7 @@ sub METAOP_ZIP(\$op) {
my $loop = 1;
while $loop {
my @z = @l.map({ $loop = 0 unless $_; .shift });
take $rop(|@z) if $loop;
take-rw $rop(|@z) if $loop;
}
}
}
Expand Down Expand Up @@ -138,7 +138,7 @@ multi sub hyper(\$op, \$a, \$b, :$dwim-left, :$dwim-right) {
?? $y.new(hyper($op, $x, $y, :$dwim-left, :$dwim-right)).item
!! $op($x, $y))
}
)
).eager
}

multi sub hyper(\$op, \$a) {
Expand Down

0 comments on commit c49a3c9

Please sign in to comment.