Packages

object Set extends SetFactory[Set]

This object provides a set of operations needed to create Set values. The current default implementation of a Set is one of EmptySet, Set1, Set2, Set3, Set4 in class immutable.Set for sets of sizes up to 4, and a immutable.HashSet for sets of larger sizes.

Source
Set.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Set
  2. SetFactory
  3. GenericSeqCompanion
  4. GenSetFactory
  5. GenericCompanion
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[A](elems: A*): Set[A]

    Creates a collection with the specified elements.

    Creates a collection with the specified elements.

    A

    the type of the collection's elements

    elems

    the elements of the created collection

    returns

    a new collection with elements elems

    Definition Classes
    GenericCompanion
  2. implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, Set[A]]
  3. def empty[A]: Set[A]

    An empty collection of type Set[A]

    An empty collection of type Set[A]

    A

    the type of the set's elements

    Definition Classes
    SetGenericCompanion
  4. def newBuilder[A]: Builder[A, immutable.Set[A]]

    The default builder for Set objects.

    The default builder for Set objects.

    A

    the type of the set's elements

    Definition Classes
    SetGenSetFactoryGenericCompanion
  5. def setCanBuildFrom[A]: CanBuildFrom[Set[_], A, Set[A]]

    The standard CanBuildFrom instance for Set objects.

    The standard CanBuildFrom instance for Set objects.

    Definition Classes
    GenSetFactory