RE: stack space overflow

2003-06-20 Thread Hal Daume
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ketil Z. Malde > Sent: Friday, June 20, 2003 7:05 AM > To: [EMAIL PROTECTED] > Subject: stack space overflow > > > > Hi, > > I have a small function to find all ind

stack space overflow

2003-06-20 Thread Ketil Z. Malde
Hi, I have a small function to find all indices in an array where a given subword can be found, looking like this: > ind i ws ar > | i+length ws-1 > len e = [] > | and [ar!(i+j) == ws!!j | j<-[0..length ws-1]] = i : ind (i+1) ws ar > | otherwise = ind (i+1) ws ar (i::Int