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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:38:58+00:00 2026-06-14T05:38:58+00:00

I have a sequence of sequences and each sequence is similar to the following:

  • 0

I have a sequence of sequences and each sequence is similar to the following:

(“9990999” “43” “ROADWAY” “MORRISON, VAN X DMD” “43 ROADWAY” “SOMETHINGTON” “XA” “00000” “501” “18050” “2500” “1180” “14370” “0”)

clojure-csv won’t help me here, because it — as it should — quotes fields with embedded commas. I want pipe-delimited output without quotes around each field, some of which contain embedded commas.

I have looked at a number of ways to remove the double quote characters including the following, but the quotes stay put.

(filter (fn [x] (not (= (str (first (str x))) (str (first (str \")))))) d1)

where d1 is the sequence above.

In addition to an answer, I am more interested in a pointer to documentation. I have been playing with this but to no avail.

  • 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-14T05:38:59+00:00Added an answer on June 14, 2026 at 5:38 am

    As far as I understand you have a sequence of strings. Clojure provides a very specific toString implementation for sequences, you can see it here.

    If you do (str d1) or simply type d1 in repl and press enter you’ll see more or less what you typed: sequence of strings (String is printed as sequence of characters in double quotes).

    Now if you want to concatenate all the string you can do this:

    (apply str d1)
    

    If you want to print it separated with commas you could do this:

    (apply str (interpose "," d1))
    

    To output is CSV format I would recommend to use clojure-csv.

    Finally if you simply want to print the list but without the double quotes around strings you could do this:

    (print d1)
    

    Hope this helps.


    EDIT1 (update due to changes in the question):

    This can easily be achieved with:

    (apply str (interpose "|" d1))
    

    Please don’t pay attention to double quotes around the entire result if you print it or spit it into a file you won’t see them, this is just how Clojure prints string readably.

    Alternatively if you have multiple sequences like that that you want to output at once you can still use clojure-csv but with different separator:

    (ns csv-test.core
      (:require [clojure-csv.core :as csv]))
    
    (def d1 (list "9990999" "43" "ROADWAY" "MORRISON, VAN X DMD" "43 ROADWAY" "SOMETHINGTON" "XA" "00000" "501" "18050" "2500" "1180" "14370" "0"))
    (print (csv/write-csv [d1]  :delimiter "|"))
    ;;prints:
    ;;9990999|43|ROADWAY|MORRISON, VAN X DMD|43 ROADWAY|SOMETHINGTON|XA|00000|501|18050|2500|1180|14370|0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sequence which varies in length e.g. something like: items <- 1:4
I have a sequence like [0, 1, 0, 1, 0, 1, 0] and I
I have a sequence of maps. ;; input [{:country MX, :video 12345, :customer cid1}
I have a sequence of k nodes N1 , N2 , N3 , ...
I have a sequence. a1 = 1 - cos(x); ai = a1 + (-1)^(i-1)
suppose i have a sequence, called TEST_SEQ what would be the correct way of
Suppose I have a sequence x1,x2,x3.....xn, and I want to find the longest continuous
I have a strange problem with IE. I have a sequence of forms on
I was wondering if this was possible... I have a sequence of variables that
I have the next sequence: create activity; place a fragment into it; go to

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.