Created
May 17, 2017 07:35
-
-
Save tai2/43928ea74840a611147a6ded02befd18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ws = x[:y].map do |y| | |
y[:z].map do |z| | |
z[:w] | |
end | |
end | |
ws = ws.flatten | |
.group_by {|w| w[:key]} | |
.map {|k, v| v.first} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment