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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:43:11+00:00 2026-06-11T07:43:11+00:00

I tried to do the following in Clojure (map future exprs) To get a

  • 0

I tried to do the following in Clojure

(map future exprs)

To get a seq of future tokens. Unfortunately this errs because future is itself a macro, not a function.

Is there a way to make this work while still maintaining the map syntax? I’d rather not use the for macro (just as a matter of personal style).

I suppose I’m looking for a mmap or macro map.

  • 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-11T07:43:13+00:00Added an answer on June 11, 2026 at 7:43 am

    As already stated by Marcin, use a lambda (anonymous function)

    user=> (map and [true false 0 nil])
    java.lang.Exception: Can't take value of a macro: #'clojure.core/and (NO_SOURCE_FILE:1)
    user=> (map #(and %) [true false 0 nil])
    (true false 0 nil)
    

    edit

    By the way, if you’re using map to create a bunch of tasks to be executed in other threads, you might have issues. map is lazy, and the futures won’t be created until something asks for them. You would need to force it to be evaluated (which is what happens in the repl when the repl prints the result) or find some other way.

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

Sidebar

Related Questions

I tried following the answer to this question , but could not get xsd.exe
I tried the following in Clojure, expecting to have the class of a non-lazy
I tried following the instruction s but can't get the plugin to work, the
I tried following the gradle manual with their example like this but copyJars is
I have tried following queries to get my facebook fan page insights data SELECT
So following on from Clojure macro to create a synonym for a function ,
Say I want to make a Clojure macro that does the following: If x
I've tried to migrate to Emacs several times for Clojure development, following a variety
I tried following this tutorial from the author's github repository, but unsuccessfully. When I
I've tried following this link Asynchronous call but some classes are obsolete. So I

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.