in reply to Re^2: Better Way to Combine Two Arrays
in thread Better Way to Combine Two Arrays

But I'm not fond of the map EXPR syntax. A block of executable code should look like a block of executable code, and be different from the always-evaluated input list. Or so it seems to me.

Unfortunately I recently found out that map BLOCK is actually a bit slower than map EXPR. I might fix that one of these days.

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re^4: Better Way to Combine Two Arrays
by bart (Canon) on Mar 11, 2004 at 14:07 UTC
    But I'm not fond of the map EXPR syntax. A block of executable code should look like a block of executable code
    Huh... me too, actually.
    Unfortunately I recently found out that map BLOCK is actually a bit slower than map EXPR.
    Entering and exiting an extra scope?

    Perhaps you could optimize it by skipping the scoping steps in case there are no lexical variables declared in it.