sweet algebras
This is an experimental implementation of emcascript algebras in Sweet.js.
Install
npm install @sweet-js/cli sweet-algrebras
Use
Import class
and interface
from the sweet-algrebras
packages:
// maybe.js'lang sweet.js';; interface Functor map; implements Functor { super; thisvalue = value; } { return ; } { return this; } 1Functormapconsolelog;
and compile with Sweet:
sjs maybe.js