apl
Richard Sexton
30 June 2017 ·
"The following function "life", written in Dyalog APL, takes a boolean matrix and calculates the new generation according to Conway's Game of Life. It demonstrates the power of APL to implement a complex algorithm in very little code, but it is also very hard to follow unless one has advanced knowledge of APL.
life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}"
Greek letters work now. Finally.
22
1 comment
1 share
John Whitlock
Damn - haven't looked at "life" or APL for YEARS!