# Why does fill(:a)\[1\] work?

**URL:** <https://discourse.julialang.org/t/why-does-fill-a-1-work/88752>\
**Category:** General Usage\
**Tags:** arrays\
**Created:** [October 14, 2022, 8:00pm UTC](https://discourse.julialang.org/t/why-does-fill-a-1-work/88752 "2022-10-14T20:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [October 14, 2022, 8:00pm UTC](https://discourse.julialang.org/t/why-does-fill-a-1-work/88752/1 "2022-10-14T20:00:49Z")

</div>

Why does `fill(:a)[1]` work? It is a zero-dimensional array, so I expect it to index with `fill(:a)[]` but apparently `[1]` also works.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [October 14, 2022, 8:10pm UTC](https://discourse.julialang.org/t/why-does-fill-a-1-work/88752/2 "2022-10-14T20:10:57Z")

</div>

See [this FAQ section](https://docs.julialang.org/en/v1/manual/faq/#Arrays) of the manual, in particular the 3rd bulett point.  
`fill(:a)[1,1]` also works, etc.
