And do you have a suggestion for a functional way? On Jul 21, 8:05 pm, Islon Scherer <islonsche...@gmail.com> wrote: > Simple: conj doesn't mutate the vector, it returns a new vector. > Clojure is a (mostly) immutable language, you're trying to solve the > problem in a imperative way, you should solve it in a functional way. > > On Jul 21, 7:48 pm, octopusgrabbus <octopusgrab...@gmail.com> wrote: > > > (def accumail-url-keys ["CA", "STREET", "STREET2", "CITY", "STATE", > > "ZIP", "YR", "BILL_NO", BILL_TYPE"]) > > > (defn ret-params > > "Generates all q-parameters and returns them in a vector of > > vectors." > > [all-csv-rows] > > (let [param-vec [[]] ] > > (doseq [one-full-csv-row all-csv-rows] > > (let [accumail-csv-row one-full-csv-row > > q-param (zipmap accumail-url-keys accumail-csv-row) > > accu-q-param (first (rest (split-at 3 q-param))) > > billing-param (first (split-at 3 q-param))] > > (conj param-vec accu-q-param billing-param))) > > param-vec)) > > > I combine some internal data with each vector returned from clojure- > > csv's parse-csv. I want to return all that in a new vector of vectors, > > but param-vec is empty. What am I doing wrong? > > > tnx > > cmn
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en