ToEntity

ToEntity[expr]
returns an entity object corresponding to the given expression.

DetailsDetails

  • ToEntity evaluates for Wolfram Language expressions corresponding to entities of type , , and .

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Convert characters to entities:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//InputForm=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]//InputForm=
In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]//InputForm=

Convert colors to entities:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//InputForm=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]//InputForm=

Convert undirected graphs to entities:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
Introduced in 2014
(10.0)