I think maybe the function you're looking for is something like:

function my_fun(::Type{T}, x...)
  for xi in x
    println(typeof(xi) <: T)
  end
end

or some variation of that?

On Sat, Oct 3, 2015 at 5:18 PM, <[email protected]> wrote:

> Is it possible to specify a variable number of parameter types in Julia,
> for instance something like
>
> function {T...}my_fun(x...)
>   for i in 1:length(x)
>     println(typeof(x[i]) <: T[i])
>   end
> end
>
> should print true ... times
>
> Thanks
>

Reply via email to