Equal and Not Equal

Q&A's, tips, howto's
Locked
cameyo
Posts: 183
Joined: Sun Mar 27, 2011 3:07 pm
Location: Italy
Contact:

Equal and Not Equal

Post by cameyo »

Code: Select all

(setq lst '((2 4) (3 1)))

(= (lst 0 0) (lst 0 0))
;-> true

(!= (lst 0 0) (lst 0 0))
;-> (nil nil)

(= (lst 0 0) (lst 1 0))
;-> (nil nil)

(= (first (first lst)) (last (first lst)))
;-> (nil nil)
I was expecting nil, instead i got (nil nil).
Where am I doing wrong?
Thanks.

cameyo
Posts: 183
Joined: Sun Mar 27, 2011 3:07 pm
Location: Italy
Contact:

Re: Equal and Not Equal

Post by cameyo »

After starting a new newLISP REPL...all works ok :-)
It is not the first time that I get strange results after using the debugger.
I'd like to have a command/method to test the integrity/correctness of current REPL session.
cameyo

Locked