import { EnumerableFactory } from '../utilities/EnumerableFactory'; import { IEnumerable } from '../types'; import { applyPipe } from './applicators/applyPipe'; export function pipe( src: Iterable, action: (item: TSource, index: number) => void ): IEnumerable { return applyPipe(new EnumerableFactory(), src, action); }