Re: listed subscripting
- Posted by Antonio Alessi <a.admin at myway.it> Apr 24, 2006
- 428 views
ags wrote: > > Antonio Alessi wrote: > > An expression like: > > }}} <eucode> > > newString = > > originalString[1..2]&"INSERT"&originalString[5..9]&originalString[27..$] > > </eucode> {{{ > > could simply become: > > }}} <eucode> > > newString = originalString[1..2]&"INSERT"&[5..9]&[27..$] > > </eucode> {{{ > > It should be plain to implement, I mean more useful than complicated... > > I don't think that would work very well. What if you wanted to use multiple > strings like: > > }}} <eucode> > newString = originalString[1..2] & "INSERT" & otherString[3..5] & [5..9] > </eucode> {{{ > What would the "[5..9]" refer to? Hi Gary, The last declared sequence, of course. I don't see where the problem arises. If I had put to you the same question, which could have been you answer? antonio