Re: Split
- Posted by jbrown105 at speedymail.org Jun 04, 2003
- 397 views
To be serious, perhaps strok by kat would serve your needs ... function flat(sequence s) sequence z for i = 1 to length(s) do z &= s[i] end for return z end function function split(sequence s, sequence t) return deparse(flat(s&t), " \n\t") end function eh? jbrown On Wed, Jun 04, 2003 at 02:44:39PM +1000, Derek Parnell wrote: > > > On Tue, 03 Jun 2003 21:27:43 -0700, <kbochert at copper.net> wrote: > > > > >I'm benchmarking Bach 2.0. Can anyone point me to a good Euphoria > >version of split? > >i.e. > >split ("a split test", "\n \t") returns: {"a", "split", "test"} > > > > How about this one... > > function split(sequence s, sequence t) > return {"a", "split", "test"} > end function > > > -- > > cheers, > Derek Parnell > > > > TOPICA - Start your own email discussion group. FREE! > > -- /"\ ASCII ribbon | http://www.geocities.com/jbrown1050/ \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME |