nested map() ?

Randall Hopper aa8vb at vislab.epa.gov
Mon Apr 5 08:58:16 EDT 1999


To generate all permutations of list elements in Perl, it's sometimes
useful to do this:

     @result = map { $a = $_ ; map{ "$a$_" } @B } @A

Is there a relatively short way to do this in Python?

Thanks,

Randall




More information about the Python-list mailing list