@wcauchois/program-builder > ProgramBuilder > apply
ProgramBuilder.apply() method
Apply a function to this program builder. This can be used to factor out common argument patterns.
Signature:apply<U extends T>(fn: (builder: ProgramBuilder<T>) => ProgramBuilder<U>): ProgramBuilder<U>;
Parameters
Parameter | Type | Description |
---|---|---|
fn | (builder: ProgramBuilder<T>) => ProgramBuilder<U> |
ProgramBuilder<U>