num/show
Convert a number to its string representation via the Show typeclass
const app = mvfm(prelude);
const prog = app({ x: "number" }, ($) => {
// $.show dispatches to num/show for numeric expressions
return $.concat("value is: ", $.show($.input.x));
});
await fold(defaults(app), injectInput(prog, { x: 123 })); Ctrl+Enter