Message144834
Oh - and while we are at it - how about having merge_list() and unique_list() as part of the core too??
def unique_list(seq): # Dave Kirby
# Order preserving
seen = set()
return [x for x in seq if x not in seen and not seen.add(x)]
def merge_list(seq):
merged = []
for s in seq:
for x in s:
merged.append(x)
return merged
Raymond - any thoughts on these 3 requests???
Cal |
|
Date |
User |
Action |
Args |
2011-10-03 18:56:33 | sleepycal | set | recipients:
+ sleepycal, rhettinger, ezio.melotti |
2011-10-03 18:56:33 | sleepycal | set | messageid: <1317668193.93.0.970561499463.issue13095@psf.upfronthosting.co.za> |
2011-10-03 18:56:33 | sleepycal | link | issue13095 messages |
2011-10-03 18:56:33 | sleepycal | create | |
|