Closed betula closed 3 years ago
const value_combine = (...args) => {
const sels = args.map((fn) => sel(fn)[0]);
return selector(() => sels.map(s => s()));
}
Will be perfect. I should check new typescript tuples, and update typescript for vscode.
value.combine(a, b, (a, b) => ({ a, b}));
or make value.combine.view
value.combine.view([a, b], (a,b) => ({ a, b })) // Perfect!
One more example
export const allReady = ready.from(
signal.combine(backReady, frontReady).flow.filter(([back, front]) => (
back && front
))
);
"value.combine" added in 0.6.0 "signal.combine" declined