Class

io.fsq.common.scala

FSTraversableOnce

Related Doc: package scala

Permalink

final class FSTraversableOnce[T, CC[X] <: TraversableOnce[X]] extends AnyVal

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

Instance Constructors

  1. new FSTraversableOnce(xs: CC[T])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def flatToArrayBy[U](f: (T) ⇒ TraversableOnce[U])(implicit arg0: ClassTag[U]): Array[U]

    Permalink

    Applies f to each item in the collection and returns an Array

  6. def flatToListBy[U](f: (T) ⇒ TraversableOnce[U]): List[U]

    Permalink

    Applies f to each item in the collection and returns a List

  7. def flatToMapBy[K, V](f: (T) ⇒ Option[(K, V)]): Map[K, V]

    Permalink

    Applies f to each item in the collection and returns a Map, discarding duplicates.

  8. def flatToMapByKey[K](f: (T) ⇒ Option[K]): Map[K, T]

    Permalink

    Creates a map from a sequence, mapping each element in the sequence by a given Option[key].

    Creates a map from a sequence, mapping each element in the sequence by a given Option[key]. If keys are duplicated or None, values will be discarded.

  9. def flatToSetBy[U](f: (T) ⇒ TraversableOnce[U]): Set[U]

    Permalink

    Applies f to each item in the collection and returns a Set

  10. def flatToVectorBy[U](f: (T) ⇒ TraversableOnce[U]): Vector[U]

    Permalink

    Applies f to each item in the collection and returns a Vector

  11. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def sample(n: Int): Iterable[T]

    Permalink

    Returns n randomly selected elements from the given list

  14. def shuffled(implicit bf: CanBuildFrom[CC[T], T, CC[T]]): CC[T]

    Permalink
  15. def shuffledDeterministically(seed: Long)(implicit bf: CanBuildFrom[CC[T], T, CC[T]]): CC[T]

    Permalink
  16. def sumBy[B](f: (T) ⇒ B)(implicit num: Numeric[B]): B

    Permalink
  17. def toArrayBy[U](f: (T) ⇒ U)(implicit arg0: ClassTag[U]): Array[U]

    Permalink

    Applies f to each item in the collection and returns an Array

  18. def toListBy[U](f: (T) ⇒ U): List[U]

    Permalink

    Applies f to each item in the collection and returns a List

  19. def toMapBy[K, V](f: (T) ⇒ (K, V)): Map[K, V]

    Permalink

    Applies f to each item in the collection and returns a Map, discarding duplicates.

  20. def toMapByKey[K](f: (T) ⇒ K): Map[K, T]

    Permalink

    Creates a map from a sequence, mapping each element in the sequence by a given key.

    Creates a map from a sequence, mapping each element in the sequence by a given key. If keys are duplicated, values will be discarded.

  21. def toMutableMapBy[K, V](f: (T) ⇒ (K, V)): Map[K, V]

    Permalink

    Applies f to each item in the collection and returns a mutable Map, discarding duplicates.

  22. def toSetBy[U](f: (T) ⇒ U): Set[U]

    Permalink

    Applies f to each item in the collection and returns a Set

  23. def toString(): String

    Permalink
    Definition Classes
    Any
  24. def toVectorBy[U](f: (T) ⇒ U): Vector[U]

    Permalink

    Applies f to each item in the collection and returns a Vector

  25. def topNSorted(size: Int)(implicit ord: Ordering[T]): Seq[T]

    Permalink

    Returns the top N elements of the Traversable in a Vector.

    Returns the top N elements of the Traversable in a Vector. They'll come back sorted from least to greatest.

  26. val xs: CC[T]

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped