examples/game_of_life.fy in fancy-0.3.3 vs examples/game_of_life.fy in fancy-0.4.0
- old
+ new
@@ -28,10 +28,10 @@
height times: |i| {
@matrix at: i put: (Array new: width with: 0)
}
}
- def [] index {
+ def [index] {
"Return the row for a given index."
@matrix[index]
}
def simulate: amount_generations {