Hi,

I was trying to test equality for lists seen as sets (elements with any
order).
Is there any direct function, or any solution simpler than this:

(bind ?list1 (list 1 2 3))
(bind ?list2 (list 3 2 1))

(and (= (length$ ?list1) (length$ ?list2)) (= (length$ (union$ ?list1
?list2)) (length$ ?list1)))

Thanks.

Henrique

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to