Marc Battyani wrote: > CL-USER 2 > (set-difference '(1 2 3) '( 2 1 3)) > nil > I thought of that first, but that won't work if list A has more items than list B, but duplicates...
Try (set-difference '(1 1 2 3) '(1 3 2))... (and length won't do, might not be the same duplicate items in either lists) -- Mikael > Marc > > Mikael Jansson wrote: >> Francesco Petrogalli wrote: >> >>> Hello, >>> >>> any idea on how to implement an un'ordered list? >>> >>> Something which can held to the equality between the "unordered list" >>> (1 2) and (2 1)? >>> >>> >> >> I don't know about the best method, but I'd just sort them & check for >> equality. >> >> >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gardeners mailing list > [email protected] > http://www.lispniks.com/mailman/listinfo/gardeners -- Mikael Jansson | http://mikael.jansson.be | GPG Key 0x88986608 Limp: The Vim Lisp IDE - http://mikael.jansson.be/hacking/limp _______________________________________________ Gardeners mailing list [email protected] http://www.lispniks.com/mailman/listinfo/gardeners
