(difference) function - error?

Q&A's, tips, howto's
Locked
Fanda
Posts: 253
Joined: Tue Aug 02, 2005 6:40 am
Contact:

(difference) function - error?

Post by 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
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

Locked