# How to create an Array of some concrete type (i.e., not Any) with zero size?

**URL:** <https://discourse.julialang.org/t/how-to-create-an-array-of-some-concrete-type-i-e-not-any-with-zero-size/21898>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 15, 2019, 6:39am UTC](https://discourse.julialang.org/t/how-to-create-an-array-of-some-concrete-type-i-e-not-any-with-zero-size/21898 "2019-03-15T06:39:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gu\_Junhua](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@Gu\_Junhua](https://discourse.julialang.org/u/Gu_Junhua)\
**Post date:** [March 15, 2019, 6:39am UTC](https://discourse.julialang.org/t/how-to-create-an-array-of-some-concrete-type-i-e-not-any-with-zero-size/21898/1 "2019-03-15T06:39:03Z")

</div>

`a=[]` # you will get an `Array{Any, 1}` with zero size  
That’s not I want.

`a=fill(0::Int, 0)` # yes you can get a zero sized Array{Int64, 1}.

But `fill` as is suggested by its name should not be used to initialize an empty array, shouldn’t it?

`a=empty([0]) ` #yes this will also create a zero sized Array{Int64, 1} with zero size, but it is rather noisy, isn’t it?

What is the best way to create an empty Array of certain concrete type?

Thanks.

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [March 15, 2019, 6:46am UTC](https://discourse.julialang.org/t/how-to-create-an-array-of-some-concrete-type-i-e-not-any-with-zero-size/21898/2 "2019-03-15T06:46:48Z")

</div>

`Int[]`

---

<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 15, 2019, 11:58am UTC](https://discourse.julialang.org/t/how-to-create-an-array-of-some-concrete-type-i-e-not-any-with-zero-size/21898/3 "2019-03-15T11:58:37Z")

</div>

Or, if you prefer a more verbose but slightly more obvious approach, `Array{Int, 1}()` and `Vector{Int}()` will also work.
