Equal and Not Equal

Q&A's, tips, howto's
Post Reply
cameyo
Posts: 101
Joined: Sun Mar 27, 2011 3:07 pm

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: 101
Joined: Sun Mar 27, 2011 3:07 pm

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

Post Reply