So, I am trying to use set-difference
in Common Lisp (sbcl) and it doesn't really work on lists of structures.
For example,
* varr ;; =>
(#S(VAR :V S) #:$K520)
* pm ;; =>
(#S(VAR :V +) #S(VAR :V S) #S(VAR :V Y) #S(VAR :V X) #:$K520)
* (set-difference pm varr) ;; =>
(#S(VAR :V X) #S(VAR :V Y) #S(VAR :V S) #S(VAR :V +))
The answer should be:
(#S(VAR :V X) #S(VAR :V Y) #S(VAR :V +))
How can I fix this?
Thanks!