-
Notifications
You must be signed in to change notification settings - Fork 8
range
richardszalay edited this page May 20, 2011
·
9 revisions
Creates a sequence of integers starting at start and incrementing for count values (including start).
static function range(start : int, count : uint, scheduler : IScheduler = null)
The returned sequence completes after count values
The returned sequence does not error
────o──────────o──────────o────────────────o──/
start start+1 start+2 ... start+count─1
Unless specified, this operator uses Scheduler.synchronous
.
IObservable.<int>
Observable.range(0, 4)
.subscribe(
function(value:int) : void { trace(value); },
function():void { trace("Completed!"); }
);
// Trace output is:
// 0
// 1
// 2
// 3
// 4
// Completed!