Skip to content

Commit

Permalink
inline IntIterator, just in case :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadako committed Jun 4, 2014
1 parent 179c94a commit 12af257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/IntIterator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ class IntIterator {
If `max <= min`, the iterator will not act as a countdown.
**/
public function new( min : Int, max : Int ) {
public inline function new( min : Int, max : Int ) {
this.min = min;
this.max = max;
}

/**
Returns true if the iterator has other items, false otherwise.
**/
public function hasNext() {
public inline function hasNext() {
return min < max;
}

Expand All @@ -58,7 +58,7 @@ class IntIterator {
If this is called while hasNext() is false, the result is unspecified.
**/
public function next() {
public inline function next() {
return min++;
}

Expand Down

0 comments on commit 12af257

Please sign in to comment.