At 09:31 PM 9/15/00, Jakob Hede Madsen wrote:
>Hi folks.
>
>on killSpaces inStr
>   if inStr.word.count < 2 then return inStr.word[1]
>   return inStr.word[1] & killSpaces(inStr.word[2..the maxInteger])
>end

Now *that's* a sweet little bit of recursion & much faster than my version!

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