MVFM

ord/lte

Less than or equal comparison — dispatches to the ord typeclass

const app = mvfm(prelude);
const prog = app({ x: "number", y: "number" }, ($) => {
  return $.lte($.input.x, $.input.y);
});
await fold(defaults(app), injectInput(prog, { x: 5, y: 10 }));
Ctrl+Enter