# Is there a "native" way for me to splat all the values of the parameters of a stru

**URL:** <https://discourse.julialang.org/t/is-there-a-native-way-for-me-to-splat-all-the-values-of-the-parameters-of-a-stru/56951>\
**Category:** General Usage\
**Created:** [March 11, 2021, 2:27pm UTC](https://discourse.julialang.org/t/is-there-a-native-way-for-me-to-splat-all-the-values-of-the-parameters-of-a-stru/56951 "2021-03-11T14:27:30Z")\
**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:** [March 11, 2021, 2:27pm UTC](https://discourse.julialang.org/t/is-there-a-native-way-for-me-to-splat-all-the-values-of-the-parameters-of-a-stru/56951/1 "2021-03-11T14:27:30Z")

</div>

is there a “native” way for me to splat all the values of the parameters of a struct? So:

```julia
struct A
    x
    y
    z
end
a = A(1,2,3)
a...
(1,2,3)

```

or a vector `[1,2,3]`

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

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [March 11, 2021, 2:33pm UTC](https://discourse.julialang.org/t/is-there-a-native-way-for-me-to-splat-all-the-values-of-the-parameters-of-a-stru/56951/2 "2021-03-11T14:33:03Z")

</div>

```julia
getfield.(Ref(a), fieldnames(A))

```
