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...
πάντων χρημάτων μέτρον έστιν άνθρωπος.
In reply to Re^2: A more elegant way to filter a nested hash?
by jimpudar
in thread A more elegant way to filter a nested hash?
by jimpudar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |