Basic Examples (3)
Basic Examples
(3)
Initialize a symbol:
In[1]:=
Out[1]=
1
The value is not set if it already satisfies the given criteria:
In[2]:=
Out[2]=
1
In[3]:=
x
Out[3]=
1
———
The does not need to be a symbol:
expr
In[1]:=
Out[1]=
π
In[2]:=
Out[2]=
π
In[3]:=
f[1]
Out[3]=
π
———
Use the operator forms:
In[1]:=
Out[1]=
hello
In[2]:=
Out[2]=
hello
In[3]:=
a
Out[3]=
hello
In[4]:=
Out[4]=
123
In[5]:=
Out[5]=
123
In[6]:=
b
Out[6]=
123
In[7]:=
Out[7]=
{1,2,3}
In[8]:=
Out[8]=
{1,2,3}
In[9]:=
c
Out[9]=
{1,2,3}
Scope (2)
Scope
(2)
Applications (2)
Applications
(2)
Properties and Relations (2)
Properties and Relations
(2)