User Tools

Site Tools


at:tutorial:objects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
at:tutorial:objects [2007/08/04 11:02] – added tvcutsemat:tutorial:objects [2008/08/01 14:27] – * tvcutsem
Line 184: Line 184:
  
 <code> <code>
-Array.add(1).add(2).add(3) +Array.add(1).add(2).add(3) 
->> <object:11698353> +def c := Array.collect: { |v| v+1 } 
-def c := Array.collect: { |v| v+1 } +c.each: { |v| system.print(v)} // prints 234
->> <object:14179973> +
-c.each: { |v| system.print(v)} +
-234 +
->>nil+
 </code> </code>
  
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem