• Pass subscriber into a stream (or any arguments into any other function).

    This utility is mainly here for uses like:

    • pipe(src, into(sink)),
    • pipe(src, into(sink, conn)),
    • pipe(src, into(restarting(sink))), etc.

    but can also be used for argument currying generally.

    Type Parameters

    • In extends any[]
    • Out

    Parameters

    • Rest ...args: In

      The arguments to pass to the stream (or other function)

    Returns ((src: ((...args: In) => Out)) => Out)

    a function that takes another function and calls it with the given args.

      • (src: ((...args: In) => Out)): Out
      • Parameters

        • src: ((...args: In) => Out)
            • (...args: In): Out
            • Parameters

              • Rest ...args: In

              Returns Out

        Returns Out