I have a function f(x). I would like that function to have an optional parameter of type vector. For instance, f(x; y::Vector=[1,2,3]). However, I'd like the default value to be something else (null? missing? void?) so that I can easily catch it and react to it.
In R, I would say function(x, y=NULL){} and then if(is.null(y)){whatever}.
What would be the most julian way of doing something similar?