![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: map/filter/reduce/lambda opinions and background unscientific mini-survey
From: Ron Adam <rrr@ronadam.com>
Date: Mon Jul 04 2005 - 23:46:00 CEST
George Sakkis wrote:
> And finally for recursive flattening:
How about this for a non recursive flatten.
def flatten(seq):
seq = [[1,2],[3],[],[4,[5,6]]]
Ron
|