03-02-2017, 09:35 AM
|
#28521
|
|
Senior Member
Join Date: Jan 2016
Drives: 2016 Subaru BRZ Hyperblue
Location: West Hartford, CT
Posts: 8,474
Thanks: 22,731
Thanked 9,435 Times in 4,844 Posts
Mentioned: 58 Post(s)
Tagged: 1 Thread(s)
|
Quote:
Originally Posted by Dadhawk
Please, you ain't doing nothing unless you are doing it in APL. This is the entire game of Life programmed in APL:
life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
(Yes, I stole this example, but I did do some of this back in the day when I was a programmer. Very quick to develop, god-awful to maintain)
|
WAT
Sent from my SM-G920P using Tapatalk
|
|
|