- toPipe<It, P, R>(fn): ((...rest) => ((iter) => R))
Type Parameters
- It extends AnyIt<unknown>
- P extends unknown[]
- R
Parameters
- fn: ((iter, ...args) => R)
- (iter, ...args): R
Returns R
Returns ((...rest) => ((iter) => R))
- (...rest): ((iter) => R)
Returns ((iter) => R)
Curries a function so it can be used in a pipe. Functions must have an iterable as a first argument.