# Vararg parametric types

**URL:** <https://discourse.julialang.org/t/vararg-parametric-types/729>\
**Category:** New to Julia\
**Created:** [December 4, 2016, 10:37pm UTC](https://discourse.julialang.org/t/vararg-parametric-types/729 "2016-12-04T22:37:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomasPuverle](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@TomasPuverle](https://discourse.julialang.org/u/TomasPuverle)\
**Post date:** [December 4, 2016, 10:37pm UTC](https://discourse.julialang.org/t/vararg-parametric-types/729/1 "2016-12-04T22:37:10Z")

</div>

Hi,

I’m a _very long_ time lurker, and in general, I love the design of Julia. I think it’s finally time I used it for a real project, and unfortunately, I am already running into an issue which I can’t solve. I’ve searched the docs (read most of them), I tried Google, stackoverflow, the old google groups. Yet, I still haven’t been able to find the answer.

Is it possible to create a vararg parameteric type? I’ve tried a number of different things, including Tuples, Vararg, etc but can’t get the syntax/usage right. What I’m trying to do is something like this:

I’ve tried

abstract MyType{T…}

abstract MyType{T \<: Vararg}

abstract MyType{T \<: Tuple{Vararg}}

and many other things.

Any suggestions please?

Many thanks,

Tom

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [December 5, 2016, 2:06am UTC](https://discourse.julialang.org/t/vararg-parametric-types/729/2 "2016-12-05T02:06:31Z")

</div>

`Tuple` is very special in the type-system and is the only type that is allowed to be parameterized by `Vararg`. The closest you can do for a regular type is to parameterize it with a Vararg Tuple:

```julia
abstract MyType{T <: Tuple}

```

---

<div class="post-metadata">

**Author:** ![TomasPuverle](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@TomasPuverle](https://discourse.julialang.org/u/TomasPuverle)\
**Post date:** [December 5, 2016, 11:20am UTC](https://discourse.julialang.org/t/vararg-parametric-types/729/3 "2016-12-05T11:20:18Z")

</div>

Thank you very much.
