import { IParallelEnumerable } from "../../types" ; import { BasicParallelEnumerable } from "../BasicParallelEnumerable" ; import { nextIteration } from "./_nextIteration" ; param source param action returns export const each = < TSource > ( source , action ) : IParallelEnumerable < TSource > => { return new BasicParallelEnumerable ( nextIteration ( source , ( x ) => { action ( x ) ; return x ; } ) ) ; } ;