Class

io.radanalytics.silex.util.richslice

RichSliceMethods

Related Doc: package richslice

Permalink

implicit class RichSliceMethods[A, S[E] <: SeqLike[E, S[E]]] extends AnyRef

Provides rich slice methods on Scala Seq types

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichSliceMethods
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichSliceMethods(seq: S[A])

    Permalink

Type Members

  1. class IterD extends Iterator[A]

    Permalink

    Used internally by rich slice iterators

  2. class IterU extends Iterator[A]

    Permalink

    Used internally by rich slice iterators

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def richSlice(rs: RichSlice)(implicit cbf: CanBuildFrom[Nothing, A, S[A]]): S[A]

    Permalink

    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)
  16. def richSlice(slices: Slice*)(implicit cbf: CanBuildFrom[Nothing, A, S[A]]): S[A]

    Permalink

    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
  17. def richSliceIterator(rs: RichSlice): Iterator[A]

    Permalink

    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)
  18. def richSliceIterator(slices: Slice*): Iterator[A]

    Permalink

    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
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped