tycho-solver
Version:
Evolutionary computation and optimization library
17 lines • 425 B
JavaScript
/**
* Applies a sequence of steps to the input, passing the result of each to the next.
*/
export class SequentialOperator {
steps;
constructor(steps) {
this.steps = steps;
}
async apply(input) {
let result = input;
for (const step of this.steps) {
result = await step.apply(result);
}
return result;
}
}
//# sourceMappingURL=SequentialOperator.js.map