"Conway's Game of Life, based on the work of
Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)
and Laurent Petit (https://gist.github.com/1200343).")
"Given a cell's coordinates `[x y]`, returns the coordinates of its
"Given a set of living `cells`, computes the new set of living cells."
(set (for [[cell n] (frequencies (mapcat neighbors cells))
"Prints a `grid` of `w` columns and `h` rows, on *out*, representing a
(doseq [x (range (inc w))
"Prints a sequence of `grids` of `w` columns and `h` rows on *out*,
representing several steps."
"`grid` represents the initial set of living cells"
(print-grids (take 3 (iterate step grid)) 5 5)