# Access to content of object in Julia

**URL:** <https://discourse.julialang.org/t/access-to-content-of-object-in-julia/39195>\
**Category:** General Usage\
**Created:** [May 9, 2020, 7:56pm UTC](https://discourse.julialang.org/t/access-to-content-of-object-in-julia/39195 "2020-05-09T19:56:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergevic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergevic/32/9958_2.png) [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Post date:** [May 9, 2020, 7:56pm UTC](https://discourse.julialang.org/t/access-to-content-of-object-in-julia/39195/1 "2020-05-09T19:56:49Z")

</div>

How can I display the names of elements stored in an object in Julia? For example, in R, we have the command `names()` which displays the names of those elements. In Julia, the command `eigen(A)` stores the eigenvalues in `values` and the eigenvectors in `vectors`, but I had to look for the github page of the `eigen` command to know that. Isn’t there a command in Julia to know those names directly? Thank you!

---

<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:** [May 9, 2020, 7:57pm UTC](https://discourse.julialang.org/t/access-to-content-of-object-in-julia/39195/2 "2020-05-09T19:57:12Z")

</div>

[`fieldnames(typeof(A))`](https://docs.julialang.org/en/v1/base/base/#Base.fieldnames)

---

<div class="post-metadata">

**Author:** ![sergevic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergevic/32/9958_2.png) [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Post date:** [May 9, 2020, 8:06pm UTC](https://discourse.julialang.org/t/access-to-content-of-object-in-julia/39195/3 "2020-05-09T20:06:26Z")

</div>

Ah thank you! I indeed tried `fieldnames()`, but without the command `typeof()`! Perfect!! 🙂
