Equal and Not Equal

Started by cameyo, June 04, 2019, 05:57:37 AM

Previous topic - Next topic

cameyo

(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

#1
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