Julia Programming Language
Accessing and changing struct fields using a dictionary
Internals & Design
feanor12
March 16, 2022, 8:45am
2
for (k,v) in attr setfield!(agent,k,v) end
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Access a struct field from a string
New to Julia
struct
6
5421
August 6, 2020
Manipulating fields of a StructArray does not work
General Usage
data_structures
1
521
November 29, 2018
Cannot assign struct as a dictionary value
New to Julia
6
463
January 27, 2021
Accessing struct via Symbol
General Usage
loops
,
struct
,
setfield
5
1210
April 8, 2021
Convert type to dictionary
General Usage
7
2906
May 24, 2021