(mapcar 'quote '("1" "2" "3" "4"))

Discussion in 'AutoCAD' started by Tom Haws, Sep 16, 2003.

  1. Tom Haws

    Tom Haws Guest

    (mapcar 'quote '("1" "2" "3" "4")) returns

    ((quote "4") (quote "4") (quote "4") (quote "4"))

    Interesting and (for me) unexpected. Because

    (mapcar 'read '("1" "2" "3" "4")) returns

    (1 2 3 4)

    and

    (mapcar 'princ '("1" "2" "3" "4")) gives

    1234("1" "2" "3" "4")

    Why isn't (mapcar 'quote '("1" "2" "3" "4")) returning
    ((quote "1") (quote "2") (quote "3") (quote "4"))

    Tom Haws
    www.hawsedc.com
     
    Tom Haws, Sep 16, 2003
    #1
  2. Tom Haws

    bestafor Guest

    bestafor, Sep 16, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.