Sha256: 654c4433dde08c8ec8bf4c0c3a6e53c2213afe33856ea53778a6c67fcde925d9
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
# blocks.fy # Examples of fancy code blocks x = { Console println: "Println from within block!" } x call # calls x and prints: "Println from within block!" y = |x y| { Console println: $ x + y } y call: [2, 3] # calls y and prints: 5 # prints numbers 0 to 20 num = 0 while: { num <= 20 } do: { Console println: num num = num + 1 }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.7.0 | examples/blocks.fy |
fancy-0.6.0 | examples/blocks.fy |
fancy-0.5.0 | examples/blocks.fy |
fancy-0.4.0 | examples/blocks.fy |