Even more basic stuff...
- Posted by Ad Rienks <106075.266 at COMPUSERVE.COM> Jan 13, 1997
- 1232 views
Mon 13-01 The Reaper wrote: > know that new sequences can be added to other sequences using the >APPEND and PREPEND syntax. However, I was wondering if there was any >way to delete a sequence from a larger sequence. Hello, If the sequences are one-dimensional, it is very easy. Suppose you have a sequence s with n elements. s = s[m..n] where m<n will delete de first m-1 elements from the sequence. s = s[1..m] will delete the elements m+1 to n. And if you want to delete a subsequence from the middle of s, you have to combine the above mentioned forms and then append the second subsequence to the first. Of course you have to use (temporal) variables to store the subsequences. As far as my knowledge reaches, this seems to be the way to solve your problem. Ad Rienks adrienks at hotmail.com