On Wed, Nov 30, 2011 at 09:10, James Gallagher <lollyproductions / mac.com> wrote: > I don't know how to split the individual digits up. If you split on an empty delimiter, you get the characters individually. E.g., "12345".split('') gives you ["1", "2", "3", "4", "5"]. Let us know how you do with the "get the sum of the digits" problem. It's a good opportunity for you to learn some interesting concepts in "functional programming" and some of the bizarrer-looking magic of Ruby. See how short you can make the solution.... :-) -Dave -- LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages. Where: Northern Virginia, Washington DC (near Orange Line), and remote work. See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence). Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)