ixfx
    Preparing search index...

    Function prepare

    • 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 source
      for await (const v of chain([`1`, `2`, `3`])) {

      }

      Type Parameters

      • In
      • Out

      Parameters

      Returns (source: GenOrData<In> | GenFactoryNoInput<In>) => AsyncGenerator<Out, any, any>