On Tue, Mar 7, 2017 at 7:35 PM, Die Optimisten
<inform / die-optimisten.net> wrote:

> Is there a method for directly getting [key, value]-pairs? (like .keys)
> hash.to_a seems to build the whole array before retuning.

http://ruby-doc.org/core-2.4.0/Hash.html

Cheers

robert

-- 
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>