Create a new subsequence from the elmenents selected by a given rich slice object
Create a new subsequence from the elmenents selected by a given rich slice object
import io.radanalytics.silex.util.richslice._ val rs = RichSlice(2, 3, 5 to 11) data.richSlice(rs) // select data(2), data(3) and data(5) through data(11)
Create a new sub sequence from the elements selcted by zero or more slice expresions.
Create a new sub sequence from the elements selcted by zero or more slice expresions.
import io.radanalytics.silex.util.richslice._ data.richSlice(1) // select data(1) data.richSlice(2, 3, 5 to 11) // select data(2), data(3) and data(5) through data(11) data.richSlice(9 to 0 by -1) // select 1st 10 elements of data in reverse data.richSlice(20 to * by 2) // select data(20) to end, by 2s
Create an iterator that iterates over the sequence elements selected by the given rich slice object
Create an iterator that iterates over the sequence elements selected by the given rich slice object
import io.radanalytics.silex.util.richslice._ val rs = RichSlice(2, 3, 5 to 11) data.richSliceIterator(rs) // iterate over data(2), data(3) and data(5) through data(11)
Create an iterator that iterates over the sequence elements selcted by zero or more slice expresions.
Create an iterator that iterates over the sequence elements selcted by zero or more slice expresions.
import io.radanalytics.silex.util.richslice._ data.richSliceIterator(1) // iterate over data(1) data.richSliceIterator(2, 3, 5 to 11) // over data(2), data(3) and data(5) through data(11) data.richSliceIterator(9 to 0 by -1) // over 1st 10 elements of data in reverse data.richSliceIterator(20 to * by 2) // over data(20) to end, by 2s
Provides rich slice methods on Scala Seq types