Forgot to mention:

On May 31, 2014 4:27 AM, "Andrew Vit" <andrew / avit.ca> wrote:
>
>     {"a" => "b"}.reduce { |memo, (k, v)| v }
>     #=> ["a", "b"]
>

I think you want ¡­hsh.map{|k,v|v}.reduce{|m,e|e}¡­ or
¡­hsh.reduce{|m,e|e}.map{|k,v|v}¡­

You can't do them in one step with the current list, because map and reduce
are fundamentally different.

Or you could change the _list_ so it fits the reduce contract, and use:
¡­hsh.reduce(nil){|m,(k,v)|v}¡­

Incidentally, they all return nil for an empty hash.