# How do I combine tuples?

**URL:** <https://discourse.julialang.org/t/how-do-i-combine-tuples/14509>\
**Category:** General Usage\
**Created:** [September 4, 2018, 12:24am UTC](https://discourse.julialang.org/t/how-do-i-combine-tuples/14509 "2018-09-04T00:24:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [September 4, 2018, 12:24am UTC](https://discourse.julialang.org/t/how-do-i-combine-tuples/14509/1 "2018-09-04T00:24:16Z")

</div>

```julia
julia> AT = ((1,2), (2,3))
((1, 2), (2, 3))

julia> ct = (3,4)
(3, 4)
julia> (AT, ct)
(((1, 2), (2, 3)), (3, 4))

julia> (AT; ct)
(3, 4)

```

Is there a way to get  
`((1, 2), (2, 3), (3, 4))`

---

<div class="post-metadata">

**Author:** ![angusmoore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/angusmoore/32/5654_2.png) [@angusmoore](https://discourse.julialang.org/u/angusmoore)\
**Post date:** [September 4, 2018, 12:32am UTC](https://discourse.julialang.org/t/how-do-i-combine-tuples/14509/2 "2018-09-04T00:32:09Z")

</div>

> [@LeoK987](#):
>
> AT = ((1,2), (2,3)) ((1, 2), (2, 3)) julia\> ct = (3,4) (3, 4) julia\> (AT, ct) (((1, 2), (2, 3)), (3, 4))

The splat operator `...` is your friend here:

```julia
julia> AT = ((1,2), (2,3));
julia> ct = (3,4)

julia> (AT..., ct)
((1, 2), (2, 3), (3, 4))

```

You can think of splatting as ‘unpacking’ a tuple. It is usually used in function definitionss for varargs ([Frequently Asked Questions · The Julia Language](https://docs.julialang.org/en/v1/manual/faq/#The-two-uses-of-the-)…-operator:-slurping-and-splatting-1)
