Skip to content

Commit

Permalink
Rename Iterator.getbatch to Iterator.batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 10, 2010
1 parent 63cafa9 commit 9fa0fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/builtins/Iterator.pir
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ continue until memory is exhausted.
.namespace ['Iterator']
.sub 'getbatch' :method
.sub 'batch' :method
.param int n
.local pmc parcel
Expand Down
4 changes: 2 additions & 2 deletions src/cheats/mapiterator.pir
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exceptions here. Perl 6 source would be something like:
has &!block;
method get() {
my $parcel = $!iter.getbatch(&!block.count);
my $parcel = $!iter.batch(&!block.count);
$parcel ~~ EMPTY ?? EMPTY !! &!block(|$parcel);
}
}
Expand Down Expand Up @@ -44,7 +44,7 @@ Returns the next element of the list.
block = getattribute self, '&!block'
$I0 = block.'count'()
parcel = iter.'getbatch'($I0)
parcel = iter.'batch'($I0)
$I0 = isa parcel, ['EMPTY']
if $I0 goto done
parcel = block(parcel :flat)
Expand Down

0 comments on commit 9fa0fd1

Please sign in to comment.