Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Flatten keys in a nested association
ResourceFunction["AssociationKeyFlatten"][assoc] flattens out keys in the nested Association assoc. | |
ResourceFunction["AssociationKeyFlatten"][assoc,f] maps f over the list of flattened keys. |
Flatten out keys in an Association:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
Apply a function to flattened lists of keys:
In[3]:= |
Out[3]= |
This work is licensed under a Creative Commons Attribution 4.0 International License