d,w are arrays that are passed to me by a machine learning algorithm
so it's not something that I have control over. There are roughly 100
words per doc.

Thanks for everyone's help. I wonder if directly mutable primitives is
something that is hard to put into Clojure? Or something that's
explicitly avoided because it distracts from the FP paradigm. The lack
of them is making this code somewhat awkward to write.
  -Patrick

On May 28, 4:44 am, Christophe Grand <christo...@cgrand.net> wrote:
> On Thu, May 27, 2010 at 9:07 PM, CuppoJava <patrickli_2...@hotmail.com>wrote:
>
> > The purpose is quite straightforward.
> > I just have to call process() on every word in the w and d array.
>
> > But I don't want to load docs if they have already been loaded.
> > And I want to stop when it hits the first malformed document.
>
> Reading this whole thread, I can't keep wondering how you build your d and w
> arrays (are they the better data structure for the job) and what's the ratio
> of words/doc.
>
> Christophe
>
> --
> Brussels, 23-25/6http://conj-labs.eu/
> Professional:http://cgrand.net/(fr)
> On Clojure:http://clj-me.cgrand.net/(en)

-- 
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

Reply via email to