Mentioning the hash twice, and coding an explicit loop.
The first one you mention seems to be inherently inefficient, unraveling both into lists and rebuilding. I was wondering if there was already a neat idiom that updated in place.
I never remember how to "slice" since I do it so seldom; doing it the boooring way was just expedient to getting the code working. So thanks for posting your examples. --John
In reply to Re^2: Combining a hash into another
by John M. Dlugosz
in thread Combining a hash into another
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |