Looking for a lightweight way to print all of the following:
<arg/keyword-arg> .=> <value that was passed or default>
here is what the equivalent would be in python:
print(getcallargs(show_params, *args, **kwargs))
Looking for a lightweight way to print all of the following:
<arg/keyword-arg> .=> <value that was passed or default>
here is what the equivalent would be in python:
print(getcallargs(show_params, *args, **kwargs))
Perhaps:
function foo(x, y)
for (k, v) in Base.@locals
println("$k => $v");
end
end
julia> foo(1,2)
y => 2
x => 1