IntIter

class IntIterAvailable in flash8, flash, neko, js, php, cppInteger iterator. Used for interval implementation.
function new( min : Int, max : Int ) : Void

Iterate from min (inclusive) to max (exclusive). If max <= min, the iterator will not act as a countdown.

There is a short-cut min...max, eg:

for (i in 0...3) //same as: for (i in new IntIter(0,3)) 
    trace(i); //0 1 2

function hasNext() : Bool function next() : Int
version #13559, modified 2012-04-12 22:32:46 by api

0 Comments