# Is there a way of doing essentially a vcat of tuples in a way that still allows th

**URL:** <https://discourse.julialang.org/t/is-there-a-way-of-doing-essentially-a-vcat-of-tuples-in-a-way-that-still-allows-th/56493>\
**Category:** General Usage\
**Created:** [March 4, 2021, 6:31pm UTC](https://discourse.julialang.org/t/is-there-a-way-of-doing-essentially-a-vcat-of-tuples-in-a-way-that-still-allows-th/56493 "2021-03-04T18:31:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [March 4, 2021, 6:31pm UTC](https://discourse.julialang.org/t/is-there-a-way-of-doing-essentially-a-vcat-of-tuples-in-a-way-that-still-allows-th/56493/1 "2021-03-04T18:31:45Z")

</div>

Is there a way of doing essentially a vcat of tuples in a way that still allows the type of each element of the resultant tuple to be inferred at compile time?  
My first instinct would be to do something like

```julia
supertuple = (tuple1..., tuple2...)

```

but I’m not sure this works as I’ve heard some bad things about the splat operator

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1614882666353400?thread_ts=1614882666.353400&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [March 4, 2021, 8:02pm UTC](https://discourse.julialang.org/t/is-there-a-way-of-doing-essentially-a-vcat-of-tuples-in-a-way-that-still-allows-th/56493/2 "2021-03-04T20:02:51Z")

</div>

Splatting seems fine in this case. The splat operator can be slow when used with collections whose _length_ is not known to the compiler, but that’s not the case for tuples, and it can be slow when splatting large numbers of elements. So this would only be a problem if `tuple1` and/or `tuple2` were very long, in which case you’d probably already be having other issues.
