Last active
May 23, 2021 11:35
-
-
Save kas-elvirov/9aedb740cd92addeac67a1be866af046 to your computer and use it in GitHub Desktop.
Nemathode with functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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