prove that the meaning of live is math

2013-05-26 Thread Marc Chantreux
hello guys, seen on facebook today: https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc1/575835_600378583316490_2003314912_n.jpg which is a good excuse for a little perl6 exercice: proove it! my result: say [+] ('a'..'z')\ .pairs\ .map: { 1 + .key if .value ~~ any m a t h

Re: prove that the meaning of live is math

2013-05-26 Thread Moritz Lenz
Hi Marc, On 05/26/2013 12:49 PM, Marc Chantreux wrote: say [+] ('a'..'z')\ .pairs\ .map: { 1 + .key if .value ~~ any m a t h } i already know i have to get used to the anoying \ at the end of the lines but i'm pretty sure there are plenty ways to make this expression

Re: prove that the meaning of live is math

2013-05-26 Thread Hao Wu
Thanks for sharing. I think Moritz's answer is great. I may change 'a'.ord - 1 to 96 because I know the ascii code for a, which was a question in my exam. However, why 42? any relation to meaning of life? It seems I miss something. Thanks. Best, Hao On Sun, May 26, 2013 at 5:49 AM, Marc

Re: prove that the meaning of live is math

2013-05-26 Thread Patrick R. Michaud
On Sun, May 26, 2013 at 09:54:21AM -0500, Hao Wu wrote: However, why 42? any relation to meaning of life? It seems I miss something. Thanks. 42 is the Answer to the Ultimate Question of Life, the Universe, and Everything, which is sometimes shortened to be meaning of life. See

Re: prove that the meaning of live is math

2013-05-26 Thread Hao Wu
Thanks. I will put this book on my reading list. Best, On Sun, May 26, 2013 at 10:02 AM, Patrick R. Michaud pmich...@pobox.comwrote: On Sun, May 26, 2013 at 09:54:21AM -0500, Hao Wu wrote: However, why 42? any relation to meaning of life? It seems I miss something. Thanks. 42 is the