0
Juliaの辞書の中の関数のキーワード引数とそのデフォルト値を取得するにはどうすればよいですか?juliaのdictの関数のキーワード引数を収集する
例:
function foo(x; a = 1, b = 2, c= 3)
# How do I get a dict of keyword arguments: Dict(a=>1, b=>2,c=3) ??,
# so I can pass this Dict easily to another generic function taking v
# variable keyword arguments for further processing
end
'args = Dict(:a => a、:b => b、:c => c)'? – Antonello
cf https://discourse.julialang.org/t/how-to-collect-keyword-arguments-in-a-dict/6693 –