Keyword argument types - what's going on?

Yes I think t it’s better to have one method defined as e.g. f(x; n=nothing, p=nothing) and in the body of f check which argument is given by the user. In this body you can then dispatch the implementation to two different helper functions.

2 Likes