Implement a Lazy Hash in Ruby
Create a Hash that self propagates when you access keys that don’t exist yet. I give a few demonstrations of smarter Hashes that work with invalid, or partial, key entry. http://6ftdan.com/allyourdev/2015/11/13/implement-a-lazy-hash-in-ruby/
Post a comment