Vincent Fourmond <vincent.fourmond / 9online.fr> writes:

>   Actually, I've got shorter ;-):
>
> h = {}
> for k,v in hash
>   [*k].each {|l| h[l] = v}
> end
> hash = h

Well, if we're golfing:

h={};hash.map{|k,v|[*k].map{|t|h[t]=v}};h

-- 
s=%q(  Daniel Martin -- martin / snowplow.org
       puts "s=%q(#{s})",s.map{|i|i}[1]       )
       puts "s=%q(#{s})",s.map{|i|i}[1]