Let's assume I have this Dict:
d=Dict("arg1"=>10,"arg2"=>20)
and a function like this:
function foo(;arg1,arg2,arg3,arg4,arg5)
#Do something
end
How can I call the function and pass the parameters in the Dict d as parameters for the function?
I know I can do this:
foo(arg1=d["arg1"],arg2=d["arg2"])
But is there any way to automate this? I mean a way to figure out which arguments are defined in the Dict and pass it automatically to the function.