Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7850145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:45:45+00:00 2026-06-02T18:45:45+00:00

I have a list (SetQ L ‘(1 j 3 k 4 h 5 n

  • 0

I have a list

(SetQ L '(1 j 3 k 4 h 5 n 6 w))

I have to do a function Order that has a list with ‘n’ atoms at entry, it must check if each atom of that list is contained in list L and order them according to the order specified in list L, if the atom is not part of the list L then the result will be displayed

(Defun Order lst)

(SetQ L2'(w o 5 j 3))

I want to verify this:

(Order L2)

result should return:

(J 3 5 W)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:45:46+00:00Added an answer on June 2, 2026 at 6:45 pm

    Hints:

    Earlier, you asked this question:

    CLISP : Check if two elements are in order one after another in a list

    This function is related to the problem because it can be used as a comparison function in a call to the standard Lisp function sort.

    The Lisp function intersection can produce a list which contains only those elements of one list which appear in another. This is a set operation, so it may squash duplicates; another way is to use remove-if-not where the test predicate is a lambda function which uses member to express the idea “remove all elements of this list which are not members of that other list”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that takes a list and replaces some elements. I have
I have list of some data items. Each has a method GetStyle which returns
I have the following filter function that filters out a list, x, that doesn't
i have list of rows that user select and i want to delete them,
I have a package which has various features that depend on AUCTeX. As it
I have list view [text view and check box controlls] with more data. I
I have list view [text view and check box controlls] with more data. I
I have this data structure (basically): (setq ssm-list '(tasklist ((id . 10525295) (name .
I have list of objects type Node ( items ). And Node class has
I need to write a function that will concatenate a list into a string.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.