dist/async-iterable/operators.js
/** Skip the first N items in a iterable sequence, and then yield the remaining items */
Skip the first N items in a iterable sequence, and then yield the remaining items
Skip the first N items in a iterable sequence and then yield the remaining items
function skip(count) {
    return function (iterable) {
        return __asyncGenerator(this, arguments, function* () {
            var e_14, _a;
            let i = 0;
            try {
                for (var iterable_12 = __asyncValues(iterable), iterable_12_1; iterable_12_1 = yield __await(iterable_12.next()), !iterable_12_1.done;) {
                    const item = iterable_12_1.value;
                    if (i >= count) {
                        yield yield __await(item);
                    }
                    i = i + 1;
                }
            }
            catch (e_14_1) { e_14 = { error: e_14_1 }; }
            finally {
                try {
                    if (iterable_12_1 && !iterable_12_1.done && (_a = iterable_12.return)) yield __await(_a.call(iterable_12));
                }
                finally { if (e_14) throw e_14.error; }
            }
        });
    };
}
function skip ( count ) { return function ( iterable ) { return __asyncGenerator ( this , arguments , function * ( ) { var e_14 , _a ; let i = 0 ; try { for ( var iterable_12 = __asyncValues ( iterable ) , iterable_12_1 ; iterable_12_1 = yield __await ( iterable_12 . next ( ) ) , ! iterable_12_1 . done ; ) { const item = iterable_12_1 . value ; if ( i >= count ) { yield yield __await ( item ) ; } i = i + 1 ; } } catch ( e_14_1 ) { e_14 = { error : e_14_1 } ; } finally { try { if ( iterable_12_1 && ! iterable_12_1 . done && ( _a = iterable_12 . return ) ) yield __await ( _a . call ( iterable_12 ) ) ; } finally { if ( e_14 ) throw e_14 . error ; } } } ) ; } ; }
Skip the first N items in a iterable sequence, and then yield the remaining items
Skip the first N items in a iterable sequence and then yield the remaining items