Monday, November 23, 2015

Selecting a sub-sequence

The standard Sequences module defines SelectSeq operator which provides a convenient way of selecting sequence elements that satisfy some condition.  However, when working with sequences, it is more practical to select a set of indices of the elements instead of elements themselves.  Having a set of indices, selected by SelectIdx operator, allows easily modify the original sequence, as shown below.


No comments:

Post a Comment