Packages

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

    Implicits for converting tuples.

    Implicits for converting tuples.

    Definition Classes
    conversions
    Example:
    1. import com.twitter.conversions.TupleOps._
      
      Seq(1 -> "tada", 2 -> "lala").toKeys
      Seq(1 -> "tada", 2 -> "lala").mapValues(_.size)
      Seq(1 -> "tada", 2 -> "lala").groupByKeyAndReduce(_ + "," + _)
      Seq(1 -> "tada", 2 -> "lala").sortByKey
  • RichTuples

implicit final class RichTuples[A, B] extends AnyVal

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

Instance Constructors

  1. new RichTuples(self: Iterable[(A, B)])

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 getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. def groupByKey: Map[A, Seq[B]]
  7. def groupByKeyAndReduce(reduceFunc: (B, B) => B): Map[A, B]
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def mapValues[C](func: (B) => C): Seq[(A, C)]
  10. val self: Iterable[(A, B)]
  11. def sortByKey(implicit ord: Ordering[A]): Seq[(A, B)]
  12. def toKeySet: Set[A]
  13. def toKeys: Seq[A]
  14. def toSortedMap(implicit ord: Ordering[A]): SortedMap[A, B]
  15. def toString(): String
    Definition Classes
    Any
  16. def toValues: Seq[B]

Inherited from AnyVal

Inherited from Any

Ungrouped