Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package twitter
    Definition Classes
    com
  • package conversions
    Definition Classes
    twitter
  • object SeqOps

    Implicits for converting Seqs.

    Implicits for converting Seqs.

    Definition Classes
    conversions
    Example:
    1. import com.twitter.conversions.SeqOps._
      
      Seq("a", "and").createMap(_.size, _)
      Seq("a", "and").groupBySingleValue(_.size)
      Seq("a", "and").findItemAfter("a")
      
      var numStrings = 0
      Seq(1, 2) foreachPartial {
        case e: Int =>
          numStrings += 1
      }
  • RichSeq

implicit final class RichSeq[A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichSeq
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichSeq(self: Seq[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def createMap[K, V](values: (A) => V): Map[A, V]
  6. def createMap[K, V](keys: (A) => K, values: (A) => V): Map[K, V]
  7. def findItemAfter(itemToFind: A): Option[A]
  8. def foreachPartial(pf: PartialFunction[A, Unit]): Unit
  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. def groupBySingleValue[B](keys: (A) => B): Map[B, A]

    Creates a map from the given sequence by mapping each transformed element (the key) by applying the function keys to the sequence and using the element in the sequence as the value.

    Creates a map from the given sequence by mapping each transformed element (the key) by applying the function keys to the sequence and using the element in the sequence as the value. Chooses the last element in the seq when a key collision occurs.

    keys

    the function that transforms a given element in the seq to a key

    returns

    a map of the given sequence

  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val self: Seq[A]
  13. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped