Quellcode durchsuchen

inline IntIterator, just in case :-)

Dan Korostelev vor 11 Jahren
Ursprung
Commit
12af25735d
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      std/IntIterator.hx

+ 3 - 3
std/IntIterator.hx

@@ -41,7 +41,7 @@ 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;
 	}
@@ -49,7 +49,7 @@ class IntIterator {
 	/**
 		Returns true if the iterator has other items, false otherwise.
 	**/
-	public function hasNext() {
+	public inline function hasNext() {
 		return min < max;
 	}
 
@@ -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++;
 	}