Skip to content
richardszalay edited this page May 20, 2011 · 9 revisions

Ignores a set number or values from the start of the source sequence

function skip(count : uint) : IObservable.<T>

Remarks

The returned sequence completes when the source sequence completes

The returned sequence errors when the source sequences errors

Marble Diagrams

n = count

xs  ──o──o─────o──o──o──/
                  │  │
      1  2 ... n  │  │
                  │  │
ys  ──────────────o──o──/

Return Value

IObservable.<T>

Examples

Observable.range(0, 5)
    .skip(3)
    .subscribe(function(value : int) : void
    {
        trace(value);
    });

    // Trace output is:
    // 3
    // 4
Clone this wiki locally