Re: Stack Overflow problem with Maps

2009-04-27 Thread Christophe Grand
Hi Patrick, Sorry for requesting code you already posted. I'm quite unsure about what functions (in particular get-key-instance) should do. Btw there's two easy ways to test if a collection is empty in clojure (rather than (= 0 (count coll))): (empty? coll) ;; true when empty or (seq coll) ;;

Re: Stack Overflow problem with Maps

2009-04-27 Thread Christophe Grand
Hi Patrick, Please provide some code. fitzpatrick...@googlemail.com a écrit : > I iterate through the list and for each row look up each of the > heading names in the Heading Info List to get an index of where a > particular element should be in the Actual Info List and then i go and > get this

Re: Stack Overflow problem with Maps

2009-04-27 Thread pjfitz
Hi, Here is the code. Each row of data is a string with @ between the three types of data i mentioned. -Row Number -Heading info List -Actual Info List The Heading Info List is created by splitting on , as is the Actual info list. tks, PJ (import '(java.io InputStreamReader OutputStreamWriter))

Re: Stack Overflow problem with Maps

2009-04-27 Thread Dimiter "malkia" Stanev
Unless you provide some kind of isolated source code that reproduces the problem, I don't think it is going to be easy to help you out. But try adding "(doall ..)" to some your "map" calls and others. Even better, look at this excellent explanation why this might be happening by Cristophe Grand:

Re: Stack Overflow problem with Maps

2009-04-27 Thread David Nolen
Can you post your code, always helpful :) On Mon, Apr 27, 2009 at 4:07 PM, fitzpatrick...@googlemail.com < fitzpatrick...@googlemail.com> wrote: > > Hi, > I am working with a very long list and populating it to a map. What i > have is three pieces of data from the list; > -Row Number > -Heading i

Stack Overflow problem with Maps

2009-04-27 Thread fitzpatrick...@googlemail.com
Hi, I am working with a very long list and populating it to a map. What i have is three pieces of data from the list; -Row Number -Heading info List -Actual Info List note: both the Heading Info List and Actual Info List have the same number of elements as each heading name will have a correspondi