in reply to Re^5: Generating lists of strings
in thread Generating lists of strings
The application I originally wrote nFor() for needed to be as efficient as possible:
So make a module. Don't suggest that the OP use and support that big chunk of complex code.
and your my code is infinitely simpler to modify than NestedLoops().
Really? Unless each level of nesting is the same, nFor degrades to
nFor { print map $lists[$_][ $_[$_] ], 0..$#_; } map 0+@$_, @lists;
I wrote that and I can't even read it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Generating lists of strings
by BrowserUk (Patriarch) on Jan 24, 2010 at 23:08 UTC | |
by ikegami (Patriarch) on Jan 24, 2010 at 23:21 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2010 at 00:07 UTC | |
by ikegami (Patriarch) on Jan 25, 2010 at 02:55 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2010 at 03:11 UTC | |
|