At 08:10 AM 9/16/00, Colin Holgate wrote:
>>on killSpaces inStr
>>   if inStr.word.count < 2 then return inStr.word[1]
>>   return inStr.word[1] & killSpaces(inStr.word[2..the maxInteger])
>>end
>
>
>
>Pretty cute. The only problem is that if you feed a lot of text at this 
>you get an out of memory error from Director.

I may have spoken too soon in my previous reply to Jakob. While I didn't 
get the out of memory (only tested up to 27 KB), this time it was just a 
tad slower than my repeat loop. I suspect the speed will be affected by the 
content of the string.



--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to