Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
9 lines
245 B
Plaintext
9 lines
245 B
Plaintext
import { Block } from '../primitives.js';
|
|
|
|
export type Transform = (Block: Block) => Block;
|
|
|
|
export function flow(...transforms: Transform[]): Transform {
|
|
return (block: Block): Block =>
|
|
transforms.reduce((block, t) => t(block), block);
|
|
}
|