import { MonoTypeOperatorFunction } from '../../interfaces'; import { IterableX } from '../../iterable/iterablex'; import { TakeIterable } from '../take'; export function take(count: number): MonoTypeOperatorFunction { return function takeOperatorFunction(source: Iterable): IterableX { return new TakeIterable(source, count); }; }