num/bottom
Bounded bottom for numbers — represents the minimum value
const app = mvfm(prelude);
const prog = app({ x: "number" }, ($) => {
// Clamp input to at least 0
return $.max($.input.x, 0);
});
await fold(defaults(app), injectInput(prog, { x: -5 })); Ctrl+Enter