Even more basic stuff...

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu