MVFM

str/literal

Lift a JS string into the DSL as a string literal node

const app = mvfm(prelude);
const prog = app({ x: "number" }, ($) => {
  // Raw strings are lifted to str/literal nodes automatically
  return $.concat("value: ", $.show($.input.x));
});
await fold(defaults(app), injectInput(prog, { x: 42 }));
Ctrl+Enter