getCompartment

getCompartment[expression]
returns the associated compartment(s) of the provided expression.
Get compartment information from all different kinds of toolbox expressions and types
In[1]:=
Click for copyable input
Get compartment information from all different kinds of toolbox expressions and types
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
getCompartment will return a list of compartments if multiple compartments are encountered