• Advertisement
Sign in to follow this  

Scheme how to compare lists

This topic is 2709 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have 2 lists and I want to find if the seond list has symbols that first list has in it. How can I do this?

Share this post


Link to post
Share on other sites
Advertisement
C++? The STL has set classes that include intersection, etc operators. You'll need to overload the inequality operators for the things you're comparing.

Share this post


Link to post
Share on other sites
Quote:
Original post by rip-off
Scheme is a Lisp-like language.


LOL! Of course! Yes, I've programmed in Scheme. I read the title as "A scheme to compare two lists" with the English dictionary definition of "scheme."

If he's writing in Scheme, then this is almost certainly a school assignment -- which is fine -- but in that case I'll go with SiCrane and wait to see what he's done so far.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement