Advertisement
Guest User

Untitled

a guest
Jun 20th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Example 1
  2. on "Hello World"
  3.     after("Hello ")
  4.     erase("l")
  5.     print()
  6.  
  7. # Example 2
  8. vertices = Vector<Float>()
  9.  
  10. on vertices
  11.     add(x)
  12.     add(y)
  13.     add(z)
  14.  
  15. # Is the same as:
  16. vertices.add(x)
  17. vertices.add(y)
  18. vertices.add(z)
  19.  
  20. # The expression after the 'on' keyword is guaranteed to be evaluated *once* only.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement