Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return Information on an object as an Association between properties and values
ResourceFunction["InformationAssociation"][obj] returns an Association between all named properties of obj and their values. | |
ResourceFunction["InformationAssociation"][obj,prop] returns an Association between the property specified in prop and its value. | |
ResourceFunction["InformationAssociation"][obj,{prop1,prop2,…,propn}] returns an Association between a list of properties, {prop1,prop2,…,propn} and their values. |
Get an association of information about a system symbol:
In[1]:= |
|
Out[1]= |
|
Restrict the set of properties retrieved:
In[2]:= |
|
Out[2]= |
|
Get a list of associations of information about a list of system symbols determined by a RegularExpression pattern:
In[3]:= |
|
Out[3]= |
|
Get a list of associations of information about a list of system symbols determined by a StringExpression pattern:
In[4]:= |
|
Out[4]= |
|
Get a single property:
In[5]:= |
|
Out[5]= |
|
An association of information about an image:
In[6]:= |
|
Out[6]= |
|
An association of information about a machine learning object, but excluding the "Properties" property:
In[7]:= |
|
Out[9]= |
|
Information on a PacletObject returned as an Association:
In[10]:= |
|
Out[10]= |
|
Information on a ChannelListener object returned as an Association:
In[11]:= |
|
Out[11]= |
|
Information on a LibraryFunction returned as an Association:
In[12]:= |
|
Out[12]= |
|
Information on an Entity:
In[13]:= |
|
Out[13]= |
|
Information on a QuantityVariable:
In[14]:= |
|
Out[14]= |
|
If running Information on the first argument produces no useful information, a message will be issued and $Failed will be returned:
In[15]:= |
|
Out[15]= |
|
InformationAssociation on a string for which there is no associated symbol produces a message and returns $Failed:
In[16]:= |
|
Out[16]= |
|
If the second argument contains a property that does not exist, InformationAssociation will return Missing:
In[17]:= |
|
Out[17]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License