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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:38:22+00:00 2026-06-03T00:38:22+00:00

The API Cheatsheet section on Lists seems to indicate that ‘() is a list

  • 0

The API Cheatsheet section on Lists seems to indicate that '() is a list constructor, just like (list), but I’ve found that in practice they’re not exactly the same. For example, given:

(def foo "a")
(def bar "b")
(def zip "c")

The following statement:

(apply str '(foo bar zip))

produces the output “foobarzip”, which I wouldn’t expect.

But the supposedly equivalent:

(apply str (list foo bar zip))

produces “abc”, as I’d expect.

What’s going on here? If there’s a “shorthand” for a list in Clojure (like {} for maps and [] for vectors), what is it?

  • 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-03T00:38:23+00:00Added an answer on June 3, 2026 at 12:38 am

    In lisps, ' (like quote) quotes its arguments, i.e. preserves them pretty much exactly as written in their s-exp form, including not evaluating anything within.

    To put it another way '(foo bar zip) creates a list containing the symbols foo, bar, zip; while (list foo bar zip) creates a list containing the values of foo, bar, zip. In the first case, str will be converting the symbols themselves to strings and then concatenating them.

    As a demonstration of this:

    => (def foo "a")
    => (type (first '(foo)))
    clojure.lang.Symbol
    => (type (first (list foo))) 
    java.lang.String
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mockito api provides method: Mockito.verifyNoMoreInteractions(someMock); but is it possible in Mockito to declare that
http://api.prototypejs.org/language/Hash/ trying to find the jQuery equivalent of new Hash() that is found in
Facebook API can give the pages a user admins. Suppose that it returns me
The API documentation gave me hopes last night with bindInfoWindowHtml. But it doesn't seem
The API I'm working with can return empty [] lists. The following conditional statements
The API documentation for OpenLayers.Feature.Vector says that Vector itself has no methods at all.
This API: /// Returns a list iterator of the elements in this list (in
_fullpath API of windows takes relative path and gives the corresponding absolute path. But,
Scribd API: http://www.scribd.com/developers For those of you that are aware of Scribd, used it
http://api.jquery.com/select/ mentions that $().select() The select event is sent to an element when the

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.