How to dynamically build function calls with different numbers of arguments in Rust?
问题 How do I take a vector of function argument AST variants, extract the values, and use them to instantiate a function call? I am writing an interpreter that evaluates certain expressions. Some of the expressions are function calls. I am having a hard time figuring out how to translate the function calls AST to the actual call. The AST gives me the function name and a vector of arguments. I can lookup the function pointer to call from the name using a map, but passing the arguments to the