* add an unzip function

This commit is contained in:
Eray Özkural
2005-06-24 15:30:20 +00:00
parent cda1ce9d17
commit fd64a1a0b4
+3
View File
@@ -18,6 +18,9 @@ class UtilError(Exception):
# string/list functions
def unzip(seq):
return zip(*seq)
def concat(l):
"""concatenate a list of lists"""
return reduce( lambda x,y: x+y, l )