import { IterableX } from '../iterablex' ; import { MonoTypeOperatorFunction } from '../../interfaces' ; export class IgnoreElementsIterable < TSource > extends IterableX < TSource > { private _source : Iterable < TSource > ; constructor ( source ) { super ( ) ; this . _source = source ; } * [ Symbol . iterator ] ( ) { const it = this . _source [ Symbol . iterator ] ( ) ; while ( ! it . next ( ) . done ) { } } } template TSource returns { MonoTypeOperatorFunction < TSource > } export function ignoreElements < TSource > ( ) { return function ignoreElementsOperatorFunction ( source ) : IterableX < TSource > { return new IgnoreElementsIterable < TSource > ( source ) ; } ; }