Is there a way in julia to restrict the values of arguments to a function, 
eg to the contents of a certain vector?

So, e.g. method in the function 

function foo(x, method::String) ...

would be constrained to either "spearman", "pearson" or "kendall"?

Thanks

Reply via email to