invert

invert

ri

 ------------------------------------------------------------ Hash#invert
      hsh.invert -> aHash
 ------------------------------------------------------------------------
      Returns a new hash created by using _hsh_'s values as keys, and the
      keys as values.
 
         h = { "n" => 100, "m" => 100, "y" => 300, "d" => 200, "a" => 0 }
         h.invert   #=> {0=>"a", 100=>"n", 200=>"d", 300=>"y"}
 

  • 2006/05/12 19:58:49 ENV
  • 2006/05/12 20:03:06 GDBM
  • 2006/05/12 20:03:30 Hash
  • 2006/05/15 12:33:56 invert