Subject: | Combination of map and each for hashes |
There needs to be a more elegant way to run through hash/array pairs.
It seems like a few things are almost there, but don't do it in the
fashion that it should look. Here's the idea:
join("\n", map { "$a => $b" } %hash);
In other words, a "natatime" of 2, but arranged as an automatic
function, without the need of a while loop. It could be like a reduce
function that only reduces it to half of its objects: a reduction of a
hash into an array. This can be passed to the other functions that work
off of arrays, like sort, grep, join, etc.