I'm trying this in REPL timmy=> (def ox [1 2 3 4]) #'timmy/ox timmy=> ox [1 2 3 4] timmy=> (map #(reduce str/split (seq ox) #",")) java.lang.IllegalArgumentException: Wrong number of args (1) passed to: core$map (NO_SOURCE_FILE:0) t
On Jun 17, 8:55 am, octopusgrabbus <octopusgrab...@gmail.com> wrote: > I'm used to using the Python csv package and how that returns lines > from a csv. I could not get clojure-csv to split up the line the way I > wanted, and also thought about how to clojure.string/split the line. > Right now at the repl, I cannot figure out the syntax just to use map > on a sequence of numbers. > > On Jun 17, 8:50 am, Michael Wood <esiot...@gmail.com> wrote: > > > > > > > > > Hi > > > On 17 June 2011 00:07, octopusgrabbus <octopusgrab...@gmail.com> wrote: > > > > This Clojure program: > > > > ns test-csv > > > (:require [clojure.contrib.string :as str]) > > > (:import (java.io BufferedReader FileReader StringReader)) > > > (:use clojure-csv.core)) > > > [...] > > > > I am having trouble figuring out where to call str/split. [...] > > > I'm having trouble understanding why you're trying to use str/split > > when you appear to be wanting to use clojure-csv. > > > Surely clojure-csv should do the splitting for you? Or what are you > > trying to split? > > > -- > > Michael Wood <esiot...@gmail.com> -- 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