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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:24:51+00:00 2026-06-09T04:24:51+00:00

Basically… => (atom? 5) CompilerException java.lang.RuntimeException: Unable to resolve symbol: atom? in this context,

  • 0

Basically…

=> (atom? 5)

CompilerException java.lang.RuntimeException: Unable to resolve symbol: atom? in this context, compiling:(NO_SOURCE_PATH:1)

=> (atom? /a)

RuntimeException Invalid token: /a clojure.lang.Util.runtimeException (Util.java:156)
RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:156)

=> (atom? "hello world")

CompilerException java.lang.RuntimeException: Unable to resolve symbol: atom? in this context, compiling:(NO_SOURCE_PATH:1)

So does anyone know what’s happening??
I am using Eclipse Juno 4.2, the CounterClockwise plugin.

  • 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-09T04:24:52+00:00Added an answer on June 9, 2026 at 4:24 am

    What’s called an atom in Clojure is something completely different than what’s called an atom in other Lisps. In classic Lisp an atom is a single value, defined as being not null or not a cons cell (pair):

    (define (atom? x)
      (not (or (pair? x)
               (null? x ))))
    

    In Clojure an atom is a concurrency reference type. Atoms in Clojure can be either single-valued or collections/sequences, where updating (mutable state change) is guaranteed to happen atomically.

    In Clojure there’s far more reference types than the cons list in Lisp, and there’s all the Java interop collection types to be reckoned with. That makes it hard to define a check on single-values.

    If you do want to, the simplest check is to see if something can be counted. Looking at (source counted), it references clojure.lang.RT/count and countFrom. There, several classes / interfaces are specified, which I included in the following function:

    => (defn single-valued?
         [x]
         (not (or (nil? x) 
                  (.. x getClass isArray)
                  (some #(instance? % x) [clojure.lang.Counted
                                          clojure.lang.IPersistentCollection
                                          java.util.Collection
                                          java.util.Map]))))
    
    => (map single-valued? [1 "foo" \a 'x true not nil])
    (true true true true true true false)
    
    => (map single-valued? ['(1 2 3 4)
                            [1 2 3 4]
                            {:a 1 :b 2}
                            #{1 2 3 4}
                            (seq [1 2 3 4])
                            (seq {:a 1 :b 2})
                            (seq "foo")
                            (int-array [1 2 3 4])
                            (seq [])])
    (false false false false false false false false false)
    

    Since (seq []) evaluates to nil it’s not considered single-valued. Of course, java objects with multiple fields, as well as Clojure deftypes / defrecords will register as such, even though they’re composite objects.

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

Sidebar

Related Questions

Basically, I have a list of delivery checkboxes one for deliver to this address
Basically from a database I am getting data that is formatted like this nameofproject101
Basically I'm attempting to add rows to a table, I need to do this
Basically this function is meant to store the height value of the element that
Basically I need to be able to do this: var obj = {foo:bar}, arr
Basically I have a loop incrementing i, and I want to do this: var
Basically I have this server app I built in vc#, and for some reason
Basically, I've seen this used all to often: public event MyEventHandler MyEvent; private void
Basically what I want to do it this: a pdb file contains a location
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse

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.