Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a list of pairs into an association
ResourceFunction["AssociatePairs"][{{key1,val1},{key2,val2},…}] gives the Association <|key1→val1,key2→val2, …|>. |
Make an Association:
In[1]:= |
Out[1]= |
Make an Association from two lists:
In[2]:= |
Out[2]= |
The number of moons for each planet in the solar system:
In[3]:= |
Out[3]= |
AssociatePairs does not thread over lists:
In[6]:= |
Out[6]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License