You could do myf{T <:Union{T1,T2}}(x::T).
- [julia-users] Writing a function for two different types,... amiksvi
- Re: [julia-users] Writing a function for two differe... Mike Innes
- Re: [julia-users] Writing a function for two dif... amiksvi
- Re: [julia-users] Writing a function for two... amiksvi
- Re: [julia-users] Writing a function for... Lutfullah Tomak
- Re: [julia-users] Writing a function for... DNF
- Re: [julia-users] Writing a functio... amiksvi
- Re: [julia-users] Writing a fun... Lutfullah Tomak
- Re: [julia-users] Writing a... Stefan Karpinski