Skip to content

Commit

Permalink
Fix unary hyper operators
Browse files Browse the repository at this point in the history
deepmap(\op, \obj) really required obj to be a fully reified list.
It's accessing $!reified directly. List.FLATTENABLE_LIST reifies
and returns $!reified. Seems like a perfect match.

All but one hyper test pass now.
  • Loading branch information
niner committed Aug 20, 2015
1 parent 7b80988 commit 3724b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metaops.pm
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ proto sub deepmap(|) { * }

multi sub deepmap(\op, \obj) {
my Mu $rpa := nqp::list();
my Mu $items := nqp::getattr(obj.List, List, '$!reified');
my Mu $items := obj.FLATTENABLE_LIST;
my Mu $o;
# We process the elements in two passes, end to start, to
# prevent users from relying on a sequential ordering of hyper.
Expand Down

0 comments on commit 3724b5d

Please sign in to comment.