RE: Sequence Slicing (Was RE: Tough ciphers?)

new topic     » goto parent     » topic index » view thread      » older message » newer message

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. :(

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu