RE: Sequence Slicing (Was RE: Tough ciphers?)
- Posted by "C. K. Lester" <cklester at yahoo.com> Mar 15, 2002
- 428 views
Derek Parnell wrote: > Life would be SO MUCH easier if there was a findfrom() routine > in which we could specify the starting index. This would > eliminate a whole class of slicing operations. Derek, doesn't the following do what you want? s = "a,i,ab,am,an,as,at,abe,..." t = ',' x = find(t, s) lastx = x while x != 0 do -- ... x = find(t, s[lastx..length(s)]) lastx += x end while Something like that... I actually tried this... finding on a slice of the sequence... but it didn't seem to work any faster. :(