From: Robert Klemme Date: 2012-06-25T15:38:48+09:00 Subject: Re: Enumerable#unassociate On Mon, Jun 25, 2012 at 1:35 AM, Intransition wrote: > Have a look: > >   module Enumerable > >     # Take an associative array and unassociate it. >     # >     #   [[:a,1], [:b,2]].unassociate.to_a     #=> [:a, [1], :b, [2]] >     #   [[:a,1], [:b,2]].unassociate(1).to_a  #=> [:a, 1, :b, 2] >     # >     def unassociate(index = 1..-1) > Other thoughts/ suggestions? What's the use case for this? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/