Skip to content

Commit

Permalink
Rename private method
Browse files Browse the repository at this point in the history
It handles iterators, not iterables.
  • Loading branch information
lizmat committed Nov 11, 2018
1 parent 843118e commit 6208c26
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/Hyper.pm6
Expand Up @@ -153,11 +153,11 @@ class Hyper {
my \values := my \values :=
$!dwim-left $!dwim-left
?? $!dwim-right ?? $!dwim-right
?? self!iterables-left-right(left-iterator,right-iterator) ?? self!iterators-left-right(left-iterator,right-iterator)
!! self!iterables-left(left-iterator,right-iterator) !! self!iterators-left(left-iterator,right-iterator)
!! $!dwim-right !! $!dwim-right
?? self!iterables-right(left-iterator,right-iterator) ?? self!iterators-right(left-iterator,right-iterator)
!! self!iterables(left-iterator,right-iterator) !! self!iterators(left-iterator,right-iterator)
; ;
my \result := nqp::p6bindattrinvres( my \result := nqp::p6bindattrinvres(
nqp::create( nqp::create(
Expand All @@ -180,7 +180,7 @@ class Hyper {
#--- Private helper methods ---------------------------------------------------- #--- Private helper methods ----------------------------------------------------


# ... >>op<< ... # ... >>op<< ...
method !iterables(Iterator:D \left, Iterator:D \right) { method !iterators(Iterator:D \left, Iterator:D \right) {
my \result := nqp::create(IterationBuffer); my \result := nqp::create(IterationBuffer);


nqp::until( nqp::until(
Expand All @@ -203,7 +203,7 @@ class Hyper {
} }


# ... <<op<< ... # ... <<op<< ...
method !iterables-left(Iterator:D \left, Iterator:D \right) { method !iterators-left(Iterator:D \left, Iterator:D \right) {
my \lefti := Rakudo::Iterator.DWIM(left); my \lefti := Rakudo::Iterator.DWIM(left);
my \result := nqp::create(IterationBuffer); my \result := nqp::create(IterationBuffer);


Expand All @@ -223,7 +223,7 @@ class Hyper {
} }


# ... >>op>> ... # ... >>op>> ...
method !iterables-right(Iterator:D \left, Iterator:D \right) { method !iterators-right(Iterator:D \left, Iterator:D \right) {
my \righti := Rakudo::Iterator.DWIM(right); my \righti := Rakudo::Iterator.DWIM(right);
my \result := nqp::create(IterationBuffer); my \result := nqp::create(IterationBuffer);


Expand All @@ -243,7 +243,7 @@ class Hyper {
} }


# ... <<op>> ... # ... <<op>> ...
method !iterables-left-right(Iterator:D \left, Iterator:D \right) { method !iterators-left-right(Iterator:D \left, Iterator:D \right) {
my \lefti := Rakudo::Iterator.DWIM(left); my \lefti := Rakudo::Iterator.DWIM(left);
my \righti := Rakudo::Iterator.DWIM(right); my \righti := Rakudo::Iterator.DWIM(right);
my \result := nqp::create(IterationBuffer); my \result := nqp::create(IterationBuffer);
Expand Down

0 comments on commit 6208c26

Please sign in to comment.