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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:27:38+00:00 2026-06-18T15:27:38+00:00

I have a quoted expression e.g. (def foo ‘(+ 1 (bar))) I want to

  • 0

I have a quoted expression e.g.

(def foo '(+ 1 (bar)))

I want to be able to find the type of any element of this list, e.g. to do something like

(type (second foo))

I get different results depending on the type of value, for example the following both evaluate to java.lang.Double, which is what I would want

(type '3.0)
(type 3.0)

Yet

(type '+)
(type +)

yields respectively

clojure.lang.Symbol
clojure.core$_PLUS_

I thought perhaps the resolve key would help yet

(type (resolve '+))

evaluates to:

clojure.lang.Var

  • 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-18T15:27:40+00:00Added an answer on June 18, 2026 at 3:27 pm

    There are just symbols '+, 'bar and self-evaluating object 1 (long) in your list

    (= '(+ 1 (bar))
       (list '+ '1 (list 'bar)))
    => true
    

    Use eval.

    (type (eval '+)) 
    => clojure.core$_PLUS_
    

    And

    (type '3.0) = (type 3.0) = (type (eval '3.0)) = java.lang.Double
    

    because numbers are self-evaluating objects.

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

Sidebar

Related Questions

I have this expression ([^]+)|(\s\S*\s) which gets any characters that are in quotes and
I have the following code: The actual problem is the non-quoted code. I want
I thought this was fixed in 4.0. I have this method public IQueryable<T> All(Expression<Func<T,object>>
So I have this javascript regex expression: var reg = new RegExp((?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'.,<>?«»‘’]))); How could
I have this multi-dimensional array: char marr[][3] = {{abc},{def}}; Now if we encounter the
I currently have this regular expression to split strings by all whitespace, unless it's
Currently I have a regular expression that will find all URL's within a block
I have a doubt concerning #{$$} inside a double quoted string, in concrete I
I keep getting this error and I have tried putting quotes around the actual
Can any body translate the following c# code to vb. I have tried telarik

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.