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

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

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:) (More Info)

1 Like
getfield.(Ref(a), fieldnames(A))
1 Like