Hi Laurent,
I certainly appreciate the other potential references. I will certainly
explore them.
You got me thinking now about what would be considered the most optimal.
I'll explore that on my own and if I feel the need report any huge
descrepancies.
Thanks for the response!
~Paul
On Thu, Nov
To me, using *map *in such a context is not the best (although it can
obviously be done).
IMHO, *map *is really intended to generate a list from another list. In
your case, a *for *loop would make more sense to me. Even the use of *grep *(or
*first*) would be more natural than *map*.
But that's p
Had time to think about this on the drive home.
I've eliminated the for loop which was my goal.
Any "better" or "cleaner" way of doing this, I'm all ears. ;)
die Some::Exception.new.throw
if %!panels.elems && !%!panels.values.map({
$end_y < .start_y || $start_x > .end_x ||
$start_