Skip to content

Instantly share code, notes, and snippets.

@kas-elvirov
Last active May 23, 2021 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kas-elvirov/9aedb740cd92addeac67a1be866af046 to your computer and use it in GitHub Desktop.
Save kas-elvirov/9aedb740cd92addeac67a1be866af046 to your computer and use it in GitHub Desktop.
Nemathode with functions
const customFunction = nemathode.evaluate([1, '+', ['abs', 1, 2, 3]]); //a rguments are not evaluated (future)
const singleFunction = nemathode.evaluate([['abs', 1, 2, 3]]; // single function syntax (it's not convinient, but for now it's only way)
const boolResult = nemathode.evaluate([['areEqual', 1, 2, 3]]); // returns boolean
// etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment