问题
Is it possible to export a Standard ML function such as
fun fac 0 = 1
| fac n = n * fac (n - 1);
To a respective JavaScript function, via Emscripten?
I know the compilation can be done, but I'm not sure how exactly you would access "fac" from JS code.
来源:https://stackoverflow.com/questions/20918629/how-to-export-standard-ml-functions-to-javascript-via-emscripten