fix incorrect merge

This commit is contained in:
Benjamin Peterson 2009-03-22 17:22:36 +00:00
parent 9d57ccb6c6
commit db08306bc2
1 changed files with 22 additions and 22 deletions

View File

@ -705,4 +705,4 @@ which incur interpreter overhead.
"List unique elements, preserving order. Remember only the element just seen."
# unique_justseen('AAAABBBCCDAABBB') --> A B C D A B
# unique_justseen('ABBCcAD', str.lower) --> A B C A D
return map(next, imap(itemgetter(1), groupby(iterable, key)))
return map(next, map(itemgetter(1), groupby(iterable, key)))