@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

ParameterTypeDescription
fn(builder: ProgramBuilder<T>) => ProgramBuilder<U>
Returns:

ProgramBuilder<U>