Note that both of these versions will return an array, allowing for type 
stability

Den torsdag den 11. februar 2016 kl. 09.40.27 UTC+1 skrev Michael 
Borregaard:
>
> If you are worried about maintaining two versions, that can be solved 
> simply:
> function foo(x::Vector{bar})
>   #the main code of your function
> end
>
> function foo(x::bar)
>   foo([x])
> end
>
>
>
>

Reply via email to