Subject: Re: Help me with this Numerology code please...
From: "Todd Benson" <caduceass gmail.com>
Date: Sat, 2 Aug 2008 04:00:21 +0900
References: 309650309854
In-reply-to: 309854
On Fri, Aug 1, 2008 at 1:55 PM, Todd Benson <caduceass / gmail.com>
> golfing solution...
>
> 'HELLO'.unpack('C*').inject(0){|s, b|s+(b-65)%9}
Oh, I didn't see Sebastian's previous solution. I also forgot the +1
after the %9.
Todd