Message Boards Message Boards

1
|
5582 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to construct hierarchical associations?

Posted 10 years ago
Attachments:
POSTED BY: David Keith
2 Replies
Posted 10 years ago
Attachments:
POSTED BY: David Keith
Posted 10 years ago

I have found that while AssociateTo will not work, AppendTo will.

Halyomorpha halys ?

In[6]:= (* This does work *)
AppendTo[as[["summary"]], "stuff" -> "someStuff"]

Out[6]= <|"stuff" -> "someStuff"|>

In[7]:= as

Out[7]= <|"name" -> "myName", "summary" -> <|"stuff" -> "someStuff"|>|
 >
POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract