@Robert: Thanks, Cheers

#!/usr/bin/env ruby
#
require 'rubygems'

y = lambda{ | str |
# puts "  #{str}"
  str.empty? ? "" : y[ str[1..-1] ] + str[0]
}

s="1234567890"
p s
p y.call(s)

output:./reverseL.rb
"1234567890"
"0987654321"


---
Jose Calderon-Celis





2011/4/22 Robert Dober <robert.dober / gmail.com>

> What about
>
> y = lambda{ | str | str.empty? ? "" : y[ str[1..-1] ] + str[0] }
>
> Cheers
> Robert
>
>
>
>