How do you propogate keyword arguments?
function f(x,y; z = 1)
return x + y + z
end
Now i want a function g which fixes y
at y = 1
, but still allows the user to vary the keyword argument z
.
g(x; (keyword arguments here)) = f(x, 1; (keyword arguments here))
I would like g to inherit the default keyword arguments of f as well, such that you can use g
exactly like f
but with the middle argument, y
fixed at 1.