From: spiralofhope Date: 2011-04-22T21:05:15+09:00 Subject: Re: Reversing a string without using array, classes and reverse function On Fri, 22 Apr 2011 20:15:34 +0900 Harry Kakueki wrote: > s = "I am a string." > > t = "" > s.each_char{|f| t.insert(0,f)} > p t #> ".gnirts a ma I" Oh, of course! This makes a lot of sense to me.. Some other examples using .length were also very easy on my brain. =) -- http://spiralofhope.com