MVFM

str/show

Convert a string to its Show representation (identity for strings)

const app = mvfm(prelude);
const prog = app({ s: "string" }, ($) => {
  // $.show dispatches to str/show for string expressions
  return $.show($.input.s);
});
await fold(defaults(app), injectInput(prog, { s: "hello" }));
Ctrl+Enter