Maybe. Depends on whether you are checking for identity or equality. If you are checking for identify, then yeah, the key sub could simply return its argument, giving your original code.
So my comment stands. Your solution is a specific case of my code that only works if one makes multiple assumptions.
In reply to Re^6: map question (hash slice)
by ikegami
in thread map question
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |