I want to implement some functionality in multiple methods and have the 
dispatch controlled by an Int variable "N". The trick is I want one method 
to be called if N == 0 and another one to be called for all other values of 
N. Is there a way I can do this with "Val{N}" without making the method 
applicable to everything? That is, can I write a generic method 
"func(::Val{N}) and constrain N to be an Int only?

Reply via email to