Is there a way to call a function by name in F #? Given the string, I want to wrest the value of the function from the global namespace (or, in general, this module) and call it. I already know the type of function.
Why do I want to do this? I am trying to work with fsi without having the --eval option. I have a script file that defines many int β () functions, and I want to execute one of them. For instance:
fsianycpu --use:script_with_many_funcs.fsx --eval "analyzeDataSet 1"
My thought was to write a trampoline script, for example:
fsianycpu --use:script_with_many_funcs.fsx trampoline.fsx analyzeDataSet 1
To write "trampoline.fsx", I will need to find the function by name.
source share