DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
is there a way of changing the key of a hash
hash.to_a.transpose.map(&:sort).transpose.to_h
PREVIOUS
NEXT
Tagged:
#changing
#key
#hash
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit