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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:55:48+00:00 2026-05-24T17:55:48+00:00

A particular macro runs each expression in its body, interleaving an atom between each

  • 0

A particular macro runs each expression in its body, interleaving an atom between each expression, and collecting the results.

This works well with hard-coded expressions, but if I want to dynamically generate a series of expressions to be inserted in the body of the macro call, that won’t work, obviously, because that will be evaluated after the macro has done its job.

I suppose the solution is to write my own macro to generate the expressions I need, but I’m not sure that will be evaluated before the outer macro.

I tried something like this, but it didn’t work:

(mac genexpr (list)
  (map (fn (e) `(something ,e)) list))
  • 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-05-24T17:55:49+00:00Added an answer on May 24, 2026 at 5:55 pm

    Try using a begin (scheme) or progn (common lisp) form. It looks like you’re using arc, which appears to name this construct do.

    (mac genexpr (list)
      `(do ,@(map (fn (c) `(something ,e)) list)))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In particular, would it be possible to have code similar to this c++ code
This particular example relates to Django in Python, but should apply to any language
In particular from this web.config: <configuration> <configSections> <section name=RStrace type=Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics /> </configSections> <system.diagnostics> <switches>
I was browsing some code and I came across this macro definition #define D(x)
I created a macro that will apply a particular style to whatever is selected
How can I automatically execute an Excel macro each time a value in a
Macros don't seem to take into account keystrokes. In this particular case I want
I have a simple bat file that runs an access macro when executed, i
Suppose I have a macro defined as this: #define FOO(x,y) \ do { int
I'm having a performance issue in my Excel macro. One particular piece of code

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.