Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. In[1]:= $a = Array[# Range[#] &, {5}]
  2.  
  3. Out[1]= {{1}, {2, 4}, {3, 6, 9}, {4, 8, 12, 16}, {5, 10, 15, 20, 25}}
  4.  
  5. In[2]:= $af = Flatten[$a, {{1}, {2}}]
  6.  
  7. Out[2]= {{1}, {2, 4}, {3, 6, 9}, {4, 8, 12, 16}, {5, 10, 15, 20, 25}}
  8.  
  9. In[3]:= $a === $af
  10.  
  11. Out[3]= True
  12.  
  13. In[4]:= FullForm[$a] === FullForm[$af]
  14.  
  15. Out[4]= True
  16.  
  17. In[5]:= TreeForm[$a]
  18.  
  19. Out[5]:=
  20.  
  21. In[6]:= TreeForm[$af]
  22.  
  23. Out[6]:=
  24.  
  25. In[7]:= TreeForm[$a] === TreeForm[$af]
  26.  
  27. Out[7]= True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement