Game of Life in one Ruby statement... inspired by APL
21-May-2020 1678
But let me explain. Last week, I stumbled upon a new APL apology post. It struck some deep chord in me and gave me an impulse to make another attempt to understand this beautifully weird language.What I (somewhat unexpectedly) find out, is that besides the use of extensive character set and extreme terseness, APL has two main features that are not at all alien to Ruby: calculations through operation chaining, and an extensive library of array operations, suitable for said chaining (in Ruby, they are represented by Enumerable module).
Game of Life in one Ruby statement... inspired by APL #ruby #rubydeveloper #rubyonrails #statement... #inspired https://www.rubyonrails.ba/link/game-of-life-in-one-ruby-statement-inspired-by-apl