# I am trying to initialize a variable as \`arr = Vector{Tuple{Float64, Vector{Float

**URL:** <https://discourse.julialang.org/t/i-am-trying-to-initialize-a-variable-as-arr-vector-tuple-float64-vector-float/55613>\
**Category:** General Usage\
**Created:** [February 19, 2021, 12:35pm UTC](https://discourse.julialang.org/t/i-am-trying-to-initialize-a-variable-as-arr-vector-tuple-float64-vector-float/55613 "2021-02-19T12:35:59Z")\
**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:** [February 19, 2021, 12:35pm UTC](https://discourse.julialang.org/t/i-am-trying-to-initialize-a-variable-as-arr-vector-tuple-float64-vector-float/55613/1 "2021-02-19T12:35:59Z")

</div>

I am trying to initialize a variable as `arr = Vector{Tuple{Float64, Vector{Float64}}}()` because I will grow it with `push!`  
However, I would like to have more than that, the first type is fixed as `Float64` but I want to have more than one `Vector{Float64}` , e.g. `arr = Vector{Tuple{Float64, Vector{Float64}, Vector{Float64}}}()` .  
Is there a way to initialized my variable with N tuple elements of the same type? I don’t expect more than 5.

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/p1613738095212100?thread_ts=1613738095.212100&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![Jorge\_Vieyra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jorge_vieyra/32/6527_2.png) [@Jorge\_Vieyra](https://discourse.julialang.org/u/Jorge_Vieyra)\
**Post date:** [February 19, 2021, 12:51pm UTC](https://discourse.julialang.org/t/i-am-trying-to-initialize-a-variable-as-arr-vector-tuple-float64-vector-float/55613/2 "2021-02-19T12:51:09Z")

</div>

Answer from Slack by @mcabbott:

```julia
Tuple{Int, Tuple{(Vector{Int} for _ in 1:3)...}}` or maybe better `Tuple{Int, Tuple{ntuple(_ -> Vector{Int}, 3)...}}

```

This is what I used in the end:

```julia
N = 3
arr = Vector{Tuple{Float64, (Vector{Float64} for _ in 1:N)...}}()

```
