(deftemplate set
(slot name)
(multislot members)
)
(deffacts sets
(set (name set1) (members 1 2 3 5 7 12))
(set (name set2) (members 2 4 3 1))
)
How can I compare each member of the "set1" with each member of "set2" and assert a new fact when the elements are equal.