Is there any way of passing undefined arguments to a function within a function?
I’ve tried with kwargs...
but it seems that I’m doing something wrong…
function f(x::Number; a=1, b=2, c=3, d=4)
return(x+a+b+c+d)
end
function f(x::Vector; kwargs...)
out = f.(x, kwargs...)
end
f(1) # works
f([1, 2]) # works
f([1, 2], c=6) # Doesn't work