Considering we have a list of rules:
In[11]:= lst = {a -> {1 -> {A1, A2, A3, A4}, b -> 2}, c -> {3 -> C3, 4 -> C4}}
Out[11]= {a -> {1 -> {A1, A2, A3, A4}, b -> 2}, c -> {3 -> C3, 4 -> C4}}
Trying to make this an association parses only the beginning and the end of the list of rule:
In[13]:= Association@lst
Out[13]= <|a -> {1 -> {A1, A2, A3, A4}, b -> 2}, c -> {3 -> C3, 4 -> C4}|>
The output I would like to have is:
<|a -> <|1 -> {A1, A2, A3, A4}, b -> 2|>, c -> <|3 -> C3, 4 -> C4|>|>
How can I parse this?
Thanks!
ResourceFunction["ToAssociations"]. – Carl Lange Apr 30 '19 at 17:45