On Fri, 22 Apr 2011 20:15:34 +0900
Harry Kakueki <list.push / gmail.com> 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