(difference) function - error?

Started by Fanda, August 19, 2005, 09:16:13 PM

Previous topic - Next topic

Fanda

Hello!

I am testing the newLISP v.8.6.2 on Win32 MinGW.



I tried the difference with example from the manual:

(difference '(2 5 6 0 3 5 0 2) '(1 2 3 3 2 1))  => (5 6 0)

but in my case it returns:  (5 6 0 5)  - which isn't a unique list



Is it an error?



Fanda

newdep

#1
what does (difference '(2 5 6 0 3 5 0 2) '(1 2 3 3 2 1) true) return ?

Could be that its switched in the C code?



Norman.
-- (define? (Cornflakes))

Lutz

#2
The result should be unique in  (difference '(2 5 6 0 3 5 0 2) '(1 2 3 3 2 1)) , this will be fixed shortly.



Lutz