From: C Erler Date: 2005-10-23T21:16:22+09:00 Subject: Re: combination sums of several arrays ------=_Part_16971_1176681.1130069779152 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Somehow my first rendition of all code posted to ruby-talk has bugs that I notice right after I post. Here is the correct version (the idea appeared already, I now see) : def sum cur_sum, ace_count if cur_sum > 11 or ace_count =3D=3D 0 cur_sum else cur_sum + 10 end end ------=_Part_16971_1176681.1130069779152--