From: Raymond T. <to...@rt...> - 2005-12-13 13:50:06
|
>>>>> "Chris" == Chris Dean <ct...@so...> writes: Chris> The delete-duplicates function has the nice feature of being able to Chris> define test to compare elements: Chris> (delete-duplicates '("3" "1" "4" "1" "5" "9") :test #'string-equal) Chris> => ("3" "4" "1" "5" "9") Chris> What's the equivalent idiom in series? Should I just write Chris> series-delete-duplicates? Off the top of my head, I don't think you can. To delete the duplicates (naively), you have to scan the list several times, or keep additional information, or sort it. Series doesn't like that. I think I'd just collect the series, delete the duplicates, and scan the list again. Ray |