in reply to Re: A more elegant way to filter a nested hash?
in thread A more elegant way to filter a nested hash?

Interesting ideas. I especially like the first one.

This got me thinking that it may be more performant to simply delete the values I don't need from the original hash instead of constructing a new one.

For my current use case, this could be okay, but I could imagine future use cases where this would not be desirable...

πάντων χρημάτων μέτρον έστιν άνθρωπος.

  • Comment on Re^2: A more elegant way to filter a nested hash?