I Julia, I would like to define a function with a variable number of typed arguments
In particular I would like to overload the + operator in this way
function Base.:+(a::MyType, (c, args...))
where c is a Number and args is of the form String, Int, String, Int, String, Int ...
where String, Int
come in pairs.
I’ve tried to at least enforcing that c is a number by doing
function Base.:+(a::MyType, (c::Number, args...))
and this does not compile
1