# How to create an empty TimeArray

**URL:** <https://discourse.julialang.org/t/how-to-create-an-empty-timearray/65372>\
**Category:** Performance\
**Created:** [July 27, 2021, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-an-empty-timearray/65372 "2021-07-27T13:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuan\_Jiun\_Thai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuan_jiun_thai/32/27561_2.png) [@Yuan\_Jiun\_Thai](https://discourse.julialang.org/u/Yuan_Jiun_Thai)\
**Post date:** [July 27, 2021, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-an-empty-timearray/65372/1 "2021-07-27T13:28:43Z")

</div>

How could I create an empty Time Array?  
I would like to “vcat” a few TimeArrays using for loop, but I would need an empty TimeArray to initialize the for loop. May I know how could I do that?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 27, 2021, 2:55pm UTC](https://discourse.julialang.org/t/how-to-create-an-empty-timearray/65372/2 "2021-07-27T14:55:47Z")

</div>

Why do you need an emtpy one? Can’t you just do

```julia
ta_all = ta_first 

for ta in list_of_other_time_arrays
    ta_all = vcat(ta_all, ta)
end

```

or indeed just `reduce(vcat, list_of_time_arrays)`?
