Sam Chats <sam_chatsblah...@gioia.aioe.org>:

> https://medium.com/technology-invention-and-more/how-to-build-a-simpl
> e-neural-network-in-9-lines-of-python-code-cc8f23647ca1

Impressive, but APL's got Python beat. This one-liner implements the
Game of Life:

   life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}

   <URL: https://en.wikipedia.org/wiki/APL_(programming_language)#Gam
   e_of_Life>

"Donc Dieu existe, répondez !"


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to