As for the lists sub-problem, a for loop can do the job:

(for*/or ([x (in-list list-1)] [y (in-list list-2)]) (equal? x y))

Alternatively, since duplicated elements don't matter, you can check the 
intersection:

(not (set-empty? (set-intersect list-1 list-2)))

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/3e22f3fb-6ec5-4762-8739-4a3dc798fabf%40googlegroups.com.

Reply via email to