scala.collection

Members list

Packages

Type members

Classlikes

final class EqSetFacade[A <: AnyRef](i: Iterable[A]) extends Set[A]

Wraps the Iterable i to a Set utilizing reference equality. It aims at efficiently creating a set in case the caller ensures that all elements in i are unique. + and - are O(N) returning scala.collection.immutable.Set.

Wraps the Iterable i to a Set utilizing reference equality. It aims at efficiently creating a set in case the caller ensures that all elements in i are unique. + and - are O(N) returning scala.collection.immutable.Set.

Value parameters

i

the underlying Iterable with unique elements.

Attributes

Supertypes
trait Set[A]
trait SetOps[A, Set, Set[A]]
trait Set[A]
trait Equals
trait SetOps[A, Set, Set[A]]
trait A => Boolean
trait Iterable[A]
trait Iterable[A]
trait IterableOps[A, Set, Set[A]]
trait IterableOnceOps[A, Set, Set[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all
trait ExtSetMethods[A] extends FilterableSet[A]

Attributes

Supertypes
trait FilterableSet[A]
class Object
trait Matchable
class Any
Known subtypes
Self type
Set[A]
trait FilterableSet[A]

Template for sets having a withFilter that keeps Set semantics. This class becomes obsolete as soon as scala.collection.Set.withFilter returns a Set instead of just FilterMonadic.

Template for sets having a withFilter that keeps Set semantics. This class becomes obsolete as soon as scala.collection.Set.withFilter returns a Set instead of just FilterMonadic.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Set[A]
final class FilteredSet[A](val set: Set[A], val p: A => Boolean) extends Set[A], FilterableSet[A]

A Set implementation extended by FilterableSet.

A Set implementation extended by FilterableSet.

Attributes

Supertypes
trait FilterableSet[A]
trait Set[A]
trait SetOps[A, Set, Set[A]]
trait Set[A]
trait Equals
trait SetOps[A, Set, Set[A]]
trait A => Boolean
trait Iterable[A]
trait Iterable[A]
trait IterableOps[A, Set, Set[A]]
trait IterableOnceOps[A, Set, Set[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all
final class SeqFacade[+A](i: Iterable[A]) extends Seq[A]

Wraps the Iterable i to a Seq. It helps to avoid the creation of a copy of the elements of i when passing i to repeated parameters of type A. apply is O(N).

Wraps the Iterable i to a Seq. It helps to avoid the creation of a copy of the elements of i when passing i to repeated parameters of type A. apply is O(N).

Value parameters

i

the underlying Iterable.

Attributes

Supertypes
trait Seq[A]
trait SeqOps[A, Seq, Seq[A]]
trait Seq[A]
trait Equals
trait SeqOps[A, Seq, Seq[A]]
trait PartialFunction[Int, A]
trait Int => A
trait Iterable[A]
trait Iterable[A]
trait IterableOps[A, Seq, Seq[A]]
trait IterableOnceOps[A, Seq, Seq[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all
object Util

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Util.type