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 142055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:52:32+00:00 2026-05-11T07:52:32+00:00

Can anyone tell me how to work with the parameters stored in the value

  • 0

Can anyone tell me how to work with the parameters stored in the value specified by &rest.

I’ve read around a lot and it seems as if authors only know how to list all the parameters as so.

(defun test (a &rest b) b) 

This is nice to see, but not really that useful.

The best I’ve found so far is to use first, second, and so on to get the parameter you are looking for.

(defun test (a &rest b)     (first b)) 

I noticed this method stops working at the tenth parameter, but the specification (from what I’ve read) supports a minimum of 50. Even if the chances are slim that I’ll use 50 parameters, I’d like to know how to access them all.

Thanks

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T07:52:33+00:00Added an answer on May 11, 2026 at 7:52 am

    The FIRST, SECOND and so on accessor functions are ‘just’ utility functions on top of CAR/CDR or NTH. SO, I guess, the answer to your specific question is ‘use NTH or ELT’ (or build your own specific acccessor functions).

    If you want, you can define an ELEVENTH as:

    (defun eleventh (list) (nth 10 list))

    I find, however, that I mostly use &REST arguments when there’s 0 or more things I want to do something with, not really caring about the specific position of a given argument in the &REST list. That usually entails using LOOP, DO or DOLIST to traverse the arguments and do something with each one; the MAP family or (occasionally) REDUCE.

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

Sidebar

Related Questions

can anyone tell me why this does not work Excel.Worksheet ws_res = (Excel.Worksheet) wb.Worksheets.Add(mis,
can anyone tell me why this code don't work: $q = $_GET['q']; // Load
I'll keep this brief: can anyone tell me why this doesn't work? The else
Can anyone tell me, how to make shadow, using UIPageViewController, around of my background
can anyone tell me why this doesnt work? public class GeocodeCoord { public string
can anyone tell me why this doesn't work? db = openOrCreateDatabase(database.db, SQLiteDatabase.CREATE_IF_NECESSARY, null); db.setLocale(Locale.getDefault());
Can anyone tell me that do scaleinto function will work on actual device having
Can anyone tell me why this does not work? I would have thought the
Why doesn't this work? Can Anyone tell me whats wrong with this onitemclicklistener? It
Can anyone tell why this doesn't work? http://www.webdevout.net/test?01x afaik it should; my <div> elements

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.