Prepare a chain, allowing you to provide a source at execution time.
const chain = Chains.prepare( Chains.transform<string,number>( v => Number.parseInt(v) ), Chains.filter<number>(v => v % 2 === 0));// Run it with provided sourcefor await (const v of chain([`1`, `2`, `3`])) {} Copy
const chain = Chains.prepare( Chains.transform<string,number>( v => Number.parseInt(v) ), Chains.filter<number>(v => v % 2 === 0));// Run it with provided sourcefor await (const v of chain([`1`, `2`, `3`])) {}
Rest
Prepare a chain, allowing you to provide a source at execution time.