Is there a quick way to flatten a hash into an array with the keys removed?
h={:at => [10, 20], :width => 100, :height => 200}
and result to:
[[10, 20], 100, 200]
There is a built-in hash method: h.values
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With