Advertisement
florin88

Wren sintassi

Jan 14th, 2015
2,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. Stampare un messaggio
  2. IO.print("Hello, world!")
  3.  
  4. Una Classe
  5. class Wren {
  6.   flyTo(city) {
  7.     IO.print("Flying to ", city)
  8.   }
  9. }
  10.  
  11. Una Variabile
  12. var adjectives = new Fiber {
  13.   ["small", "clean", "fast"].map {|word| Fiber.yield(word) }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement