org.scalactic.SortedEquaSets

SortedEquaSet

trait SortedEquaSet extends EquaSet

Source
SortedEquaSets.scala
Linear Supertypes
SortedEquaSets.EquaSet, Equals, (T) ⇒ Boolean, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SortedEquaSet
  2. EquaSet
  3. Equals
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations.

Abstract Value Members

  1. abstract def &(that: SortedEquaSets.EquaSet): SortedEquaSet

    Computes the intersection between this SortedEquaSet and another EquaSet.

    Computes the intersection between this SortedEquaSet and another EquaSet.

    Note: Same as intersect.

    that

    the EquaSet to intersect with.

    returns

    a new SortedEquaSet consisting of all elements that are both in this SortedEquaSet and in the given EquaSet that.

    Definition Classes
    SortedEquaSetEquaSet
  2. abstract def &~(that: SortedEquaSets.EquaSet): SortedEquaSet

    The difference of this SortedEquaSet and another EquaSet.

    The difference of this SortedEquaSet and another EquaSet.

    Note: Same as diff.

    that

    the EquaSet of elements to exclude.

    returns

    a SortedEquaSet containing those elements of this SortedEquaSet that are not also contained in the given EquaSet that.

    Definition Classes
    SortedEquaSetEquaSet
  3. abstract def +(elem1: T, elem2: T, elems: T*): SortedEquaSet

    Creates a new SortedEquaSet with additional elements.

    Creates a new SortedEquaSet with additional elements.

    This method takes two or more elements to be added. Another overloaded variant of this method handles the case where a single element is added.

    elem1

    the first element to add.

    elem2

    the second element to add.

    elems

    the remaining elements to add.

    returns

    a new SortedEquaSet with the given elements added.

    Definition Classes
    SortedEquaSetEquaSet
  4. abstract def +(elem: T): SortedEquaSet

    Creates a new SortedEquaSet with an additional element, unless the element is already present.

    Creates a new SortedEquaSet with an additional element, unless the element is already present.

    elem

    the element to be added

    returns

    a new SortedEquaSet that contains all elements of this SortedEquaSet and that also contains elem.

    Definition Classes
    SortedEquaSetEquaSet
  5. abstract def ++(that: SortedEquaSets.EquaSet): SortedEquaSet

    Creates a new SortedEquaSet by adding elements contained in another EquaSet.

    Creates a new SortedEquaSet by adding elements contained in another EquaSet.

    that

    the other EquaSet containing the added elements.

    returns

    a new SortedEquaSet with the given elements added.

    Definition Classes
    SortedEquaSetEquaSet
  6. abstract def ++(elems: GenTraversableOnce[T]): SortedEquaSet

    Creates a new SortedEquaSet by adding all elements contained in another collection to this SortedEquaSet.

    Creates a new SortedEquaSet by adding all elements contained in another collection to this SortedEquaSet.

    elems

    the collection containing the added elements.

    returns

    a new SortedEquaSet with the given elements added.

    Definition Classes
    SortedEquaSetEquaSet
  7. abstract def -(elem1: T, elem2: T, elems: T*): SortedEquaSet

    Creates a new SortedEquaSet from this SortedEquaSet with some elements removed.

    Creates a new SortedEquaSet from this SortedEquaSet with some elements removed.

    This method takes two or more elements to be removed. Another overloaded variant of this method handles the case where a single element is removed.

    elem1

    the first element to remove.

    elem2

    the second element to remove.

    elems

    the remaining elements to remove.

    returns

    a new SortedEquaSet that contains all elements of the current SortedEquaSet except one less occurrence of each of the given elements.

    Definition Classes
    SortedEquaSetEquaSet
  8. abstract def -(elem: T): SortedEquaSet

    Creates a new SortedEquaSet with a given element removed from this SortedEquaSet.

    Creates a new SortedEquaSet with a given element removed from this SortedEquaSet.

    elem

    the element to be removed

    returns

    a new SortedEquaSet that contains all elements of this SortedEquaSet but that does not contain elem.

    Definition Classes
    SortedEquaSetEquaSet
  9. abstract def --(that: SortedEquaSets.EquaSet): SortedEquaSet

    Creates a new SortedEquaSet from this SortedEquaSet by removing all elements of another EquaSet

    Creates a new SortedEquaSet from this SortedEquaSet by removing all elements of another EquaSet

    that

    the other EquaSet containing the removed elements.

    returns

    a new SortedEquaSet that contains all elements of the current EquaSet minus elements contained in the passed in EquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  10. abstract def --(elems: GenTraversableOnce[T]): SortedEquaSet

    Creates a new SortedEquaSet from this SortedEquaSet by removing all elements of another collection.

    Creates a new SortedEquaSet from this SortedEquaSet by removing all elements of another collection.

    elems

    the collection containing the removed elements.

    returns

    a new SortedEquaSet that contains all elements of the current SortedEquaSet except one less occurrence of each of the elements of elems.

    Definition Classes
    SortedEquaSetEquaSet
  11. abstract def /:[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this SortedEquaSet, going left to right.

    Applies a binary operator to a start value and all elements of this SortedEquaSet, going left to right.

    Note: /: is alternate syntax for foldLeft; z /: xs is the same as xs foldLeft z.

    Examples:

    Note that the folding function used to compute b is equivalent to that used to compute c.

    scala> val a = List(1,2,3,4)
    a: List[Int] = List(1, 2, 3, 4)
    
    scala> val b = (5 /: a)(_+_)
    b: Int = 15
    
    scala> val c = (5 /: a)((x,y) => x + y)
    c: Int = 15

    $willNotTerminateInf $orderDependentFold

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this SortedEquaSet, going left to right with the start value z on the left:

    op(...op(op(z, x_1), x_2), ..., x_n)

    where x1, ..., xn are the elements of this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  12. abstract def :\[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this SortedEquaSet and a start value, going right to left.

    Applies a binary operator to all elements of this SortedEquaSet and a start value, going right to left.

    Note: :\ is alternate syntax for foldRight; xs :\ z is the same as xs foldRight z. $willNotTerminateInf $orderDependentFold

    Examples:

    Note that the folding function used to compute b is equivalent to that used to compute c.

    scala> val a = List(1,2,3,4)
    a: List[Int] = List(1, 2, 3, 4)
    
    scala> val b = (a :\ 5)(_+_)
    b: Int = 15
    
    scala> val c = (a :\ 5)((x,y) => x + y)
    c: Int = 15
    B

    the result type of the binary operator.

    z

    the start value

    op

    the binary operator

    returns

    the result of inserting op between consecutive elements of this SortedEquaSet, going right to left with the start value z on the right:

    op(x_1, op(x_2, ... op(x_n, z)...))

    where x1, ..., xn are the elements of this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  13. abstract def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this EquaSet to a string builder using start, end, and separator strings.

    Appends all elements of this EquaSet to a string builder using start, end, and separator strings. The written text begins with the string start and ends with the string end. Inside, the string representations (w.r.t. the method toString) of all elements of this EquaSet are separated by the string sep.

    Example:

    scala> val a = List(1,2,3,4)
    a: List[Int] = List(1, 2, 3, 4)
    
    scala> val b = new StringBuilder()
    b: StringBuilder =
    
    scala> a.addString(b , "List(" , ", " , ")")
    res5: StringBuilder = List(1, 2, 3, 4)
    b

    the string builder to which elements are appended.

    start

    the starting string.

    sep

    the separator string.

    end

    the ending string.

    returns

    the string builder b to which elements were appended.

    Definition Classes
    EquaSet
  14. abstract def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this EquaSet to a string builder using a separator string.

    Appends all elements of this EquaSet to a string builder using a separator string. The written text consists of the string representations (w.r.t. the method toString) of all elements of this EquaSet, separated by the string sep.

    Example:

    scala> val a = List(1,2,3,4)
    a: List[Int] = List(1, 2, 3, 4)
    
    scala> val b = new StringBuilder()
    b: StringBuilder =
    
    scala> a.addString(b, ", ")
    res0: StringBuilder = 1, 2, 3, 4
    b

    the string builder to which elements are appended.

    sep

    the separator string.

    returns

    the string builder b to which elements were appended.

    Definition Classes
    EquaSet
  15. abstract def addString(b: StringBuilder): StringBuilder

    Appends all elements of this EquaSet to a string builder.

    Appends all elements of this EquaSet to a string builder. The written text consists of the string representations (w.r.t. the method toString) of all elements of this EquaSet without any separator string.

    Example:

    scala> val a = List(1,2,3,4)
    a: List[Int] = List(1, 2, 3, 4)
    
    scala> val b = new StringBuilder()
    b: StringBuilder =
    
    scala> val h = a.addString(b)
    h: StringBuilder = 1234
    b

    the string builder to which elements are appended.

    returns

    the string builder b to which elements were appended.

    Definition Classes
    EquaSet
  16. abstract def aggregate[B](z: ⇒ B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B

    Aggregates the results of applying an operator to subsequent elements.

    Aggregates the results of applying an operator to subsequent elements.

    This is a more general form of fold and reduce. It has similar semantics, but does not require the result to be a supertype of the element type. It traverses the elements in different partitions sequentially, using seqop to update the result, and then applies combop to results from different partitions. The implementation of this operation may operate on an arbitrary number of collection partitions, so combop may be invoked an arbitrary number of times.

    For example, one might want to process some elements and then produce a Set. In this case, seqop would process an element and append it to the list, while combop would concatenate two lists from different partitions together. The initial value z would be an empty set.

    pc.aggregate(Set[Int]())(_ += process(_), _ ++ _)

    Another example is calculating geometric mean from a collection of doubles (one would typically require big doubles for this).

    B

    the type of accumulated results

    z

    the initial value for the accumulated result of the partition - this will typically be the neutral element for the seqop operator (e.g. Nil for list concatenation or 0 for summation) and may be evaluated more than once

    seqop

    an operator used to accumulate results within a partition

    combop

    an associative operator used to combine results from different partitions

    Definition Classes
    EquaSet
  17. abstract def apply(elem: T): Boolean

    Tests if some element is contained in this set.

    Tests if some element is contained in this set.

    This method is equivalent to contains. It allows sets to be interpreted as predicates.

    elem

    the element to test for membership.

    returns

    true if elem is contained in this set, false otherwise.

    Definition Classes
    EquaSet → Function1
  18. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  19. abstract def collect(pf: PartialFunction[T, T]): SortedEquaSet

    Builds a new collection by applying a partial function to all elements of this SortedEquaSet on which the function is defined.

    Builds a new collection by applying a partial function to all elements of this SortedEquaSet on which the function is defined.

    pf

    the partial function which filters and maps the SortedEquaSet.

    returns

    a new SortedEquaSet resulting from applying the given partial function pf to each element on which it is defined and collecting the results. The order of the elements is preserved.

    Definition Classes
    SortedEquaSetEquaSet
  20. abstract def contains[U](elem: U)(implicit ev: <:<[U, T]): Boolean

    Definition Classes
    SortedEquaSetEquaSet
  21. abstract def copyToArray(xs: Array[SortedEquaSets.EquaBox], start: Int, len: Int): Unit

    Copies values of this EquaSet to an array.

    Copies values of this EquaSet to an array. Fills the given array xs with values of this EquaSet, beginning at index start. Copying will stop once the count of element copied reach len.

    xs

    the array to fill.

    start

    the starting index.

    len

    the length of elements to copy

    Definition Classes
    EquaSet
  22. abstract def copyToArray(xs: Array[SortedEquaSets.EquaBox], start: Int): Unit

    Copies values of this EquaSet to an array.

    Copies values of this EquaSet to an array. Fills the given array xs with values of this EquaSet, beginning at index start. Copying will stop once either the end of the current EquaSet is reached, or the end of the array is reached.

    xs

    the array to fill.

    start

    the starting index.

    Definition Classes
    EquaSet
  23. abstract def copyToArray(xs: Array[SortedEquaSets.EquaBox]): Unit

    Copies values of this EquaSet to an array.

    Copies values of this EquaSet to an array. Fills the given array xs with values of this EquaSet. Copying will stop once either the end of the current EquaSet is reached, or the end of the array is reached.

    xs

    the array to fill.

    Definition Classes
    EquaSet
  24. abstract def copyToBuffer(dest: Buffer[SortedEquaSets.EquaBox]): Unit

    Copies all elements of this EquaSet to a buffer.

    Copies all elements of this EquaSet to a buffer.

    dest

    The buffer to which elements are copied.

    Definition Classes
    EquaSet
  25. abstract def count(p: (T) ⇒ Boolean): Int

    Counts the number of elements in the EquaSet which satisfy a predicate.

    Counts the number of elements in the EquaSet which satisfy a predicate.

    p

    the predicate used to test elements.

    returns

    the number of elements satisfying the predicate p.

    Definition Classes
    EquaSet
  26. abstract def diff(that: SortedEquaSets.EquaSet): SortedEquaSet

    Computes the difference of this SortedEquaSet and another SortedEquaSet.

    Computes the difference of this SortedEquaSet and another SortedEquaSet.

    that

    the EquaSet of elements to exclude.

    returns

    a SortedEquaSet containing those elements of this SortedEquaSet that are not also contained in the given EquaSet that.

    Definition Classes
    SortedEquaSetEquaSet
  27. abstract def drop(n: Int): SortedEquaSet

    Selects all elements except first n ones.

    Selects all elements except first n ones.

    n

    the number of elements to drop from this SortedEquaSet.

    returns

    a SortedEquaSet consisting of all elements of this SortedEquaSet except the first n ones, or else the empty SortedEquaSet, if this EquaSet has less than n elements.

    Definition Classes
    SortedEquaSetEquaSet
  28. abstract def dropRight(n: Int): SortedEquaSet

    Selects all elements except last n ones.

    Selects all elements except last n ones.

    n

    The number of elements to take

    returns

    a SortedEquaSet consisting of all elements of this SortedEquaSet except the last n ones, or else the empty SortedEquaSet, if this SortedEquaSet has less than n elements.

    Definition Classes
    SortedEquaSetEquaSet
  29. abstract def dropWhile(pred: (T) ⇒ Boolean): SortedEquaSet

    Drops longest prefix of elements that satisfy a predicate.

    Drops longest prefix of elements that satisfy a predicate.

    pred

    The predicate used to test elements.

    returns

    the longest suffix of this SortedEquaSet whose first element does not satisfy the predicate p.

    Definition Classes
    SortedEquaSetEquaSet
  30. abstract def enclosingEquaSets: SortedEquaSets[T]

    Definition Classes
    SortedEquaSetEquaSet
  31. abstract def exists(pred: (T) ⇒ Boolean): Boolean

    Check if this EquaSet contains element which satisfy a predicate.

    Check if this EquaSet contains element which satisfy a predicate.

    pred

    predicate predicate used to test elements

    returns

    true if there's at least one element satisfy the given predicate pred

    Definition Classes
    EquaSet
  32. abstract def filter(pred: (T) ⇒ Boolean): SortedEquaSet

    Selects all elements of this SortedEquaSet which satisfy a predicate.

    Selects all elements of this SortedEquaSet which satisfy a predicate.

    pred

    the predicate used to test elements.

    returns

    a new SortedEquaSet consisting of all elements of this SortedEquaSet that satisfy the given predicate pred.

    Definition Classes
    SortedEquaSetEquaSet
  33. abstract def filterNot(pred: (T) ⇒ Boolean): SortedEquaSet

    Selects all elements of this SortedEquaSets which do not satisfy a predicate.

    Selects all elements of this SortedEquaSets which do not satisfy a predicate.

    pred

    the predicate used to test elements.

    returns

    a new SortedEquaSets consisting of all elements of this SortedEquaSets that do not satisfy the given predicate pred.

    Definition Classes
    SortedEquaSetEquaSet
  34. abstract def find(pred: (T) ⇒ Boolean): Option[T]

    Finds the first element of the EquaSet satisfying a predicate, if any.

    Finds the first element of the EquaSet satisfying a predicate, if any.

    pred

    the predicate used to test elements.

    returns

    an option value containing the first element in the EquaSet that satisfies pred, or None if none exists.

    Definition Classes
    EquaSet
  35. abstract def flatMap(f: (T) ⇒ SortedEquaSets.EquaSet): SortedEquaSet

    Builds a new SortedEquaSet by applying a function to all elements of this SortedEquaSet and using the elements of the resulting EquaSet.

    Builds a new SortedEquaSet by applying a function to all elements of this SortedEquaSet and using the elements of the resulting EquaSet.

    f

    the function to apply to each element.

    returns

    a new SortedEquaSet resulting from applying the given EquaSet-valued function f to each element of this SortedEquaSet and concatenating the results.

    Definition Classes
    SortedEquaSetEquaSet
  36. abstract def fold[T1 >: T](z: T1)(op: (T1, T1) ⇒ T1): T1

    Folds the elements of this EquaSet using the specified associative binary operator.

    Folds the elements of this EquaSet using the specified associative binary operator.

    T1

    a type parameter for the binary operator, a supertype of A.

    z

    a neutral element for the fold operation; may be added to the result an arbitrary number of times, and must not change the result (e.g., Nil for list concatenation, 0 for addition, or 1 for multiplication.)

    op

    a binary operator that must be associative

    returns

    the result of applying fold operator op between all the elements and z

    Definition Classes
    EquaSet
  37. abstract def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this EquaSet, going left to right.

    Applies a binary operator to a start value and all elements of this EquaSet, going left to right.

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this EquaSet, going left to right with the start value z on the left:

    op(...op(z, x_1), x_2, ..., x_n)

    where x1, ..., xn are the elements of this EquaSet.

    Definition Classes
    EquaSet
  38. abstract def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this EquaSet and a start value, going right to left.

    Applies a binary operator to all elements of this EquaSet and a start value, going right to left.

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this EquaSet, going right to left with the start value z on the right:

    op(x_1, op(x_2, ... op(x_n, z)...))

    where x1, ..., xn are the elements of this EquaSet.

    Definition Classes
    EquaSet
  39. abstract def forall(pred: (T) ⇒ Boolean): Boolean

    Check if all elements in this EquaSet satisfy the predicate.

    Check if all elements in this EquaSet satisfy the predicate.

    pred

    the predicate to check for

    returns

    true if all elements satisfy the predicate, false otherwise.

    Definition Classes
    EquaSet
  40. abstract def foreach[U](f: (T) ⇒ U): Unit

    Applies a function f to all elements of this EquaSet.

    Applies a function f to all elements of this EquaSet.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    Definition Classes
    EquaSet
  41. abstract def groupBy[K](f: (T) ⇒ K): GenMap[K, SortedEquaSet]

    Partitions this SortedEquaSet into a map of SortedEquaSets according to some discriminator function.

    Partitions this SortedEquaSet into a map of SortedEquaSets according to some discriminator function.

    Note: this method is not re-implemented by views. This means when applied to a view it will always force the view and return a new SortedEquaSet.

    K

    the type of keys returned by the discriminator function.

    f

    the discriminator function.

    returns

    A map from keys to SortedEquaSets such that the following invariant holds:

    (xs groupBy f)(k) = xs filter (x => f(x) == k)

    That is, every key k is bound to a SortedEquaSet of those elements x for which f(x) equals k.

    Definition Classes
    SortedEquaSetEquaSet
  42. abstract def grouped(size: Int): Iterator[SortedEquaSet]

    Partitions elements in fixed size SortedEquaSets.

    Partitions elements in fixed size SortedEquaSets.

    size

    the number of elements per group

    returns

    An iterator producing SortedEquaSets of size size, except the last will be less than size size if the elements don't divide evenly.

    Definition Classes
    SortedEquaSetEquaSet
    See also

    scala.collection.Iterator, method grouped

  43. abstract def hasDefiniteSize: Boolean

    Definition Classes
    EquaSet
  44. abstract def head: T

    Selects the first element of this EquaSet.

    Selects the first element of this EquaSet.

    returns

    the first element of this EquaSet.

    Definition Classes
    EquaSet
    Exceptions thrown
    `NoSuchElementException`

    if the EquaSet is empty.

  45. abstract def headOption: Option[T]

    Optionally selects the first element.

    Optionally selects the first element.

    returns

    the first element of this EquaSet if it is nonempty, None if it is empty.

    Definition Classes
    EquaSet
  46. abstract def init: SortedEquaSet

    Selects all elements except the last.

    Selects all elements except the last.

    returns

    a SortedEquaSet consisting of all elements of this SortedEquaSet except the last one.

    Definition Classes
    SortedEquaSetEquaSet
    Exceptions thrown
    `UnsupportedOperationException`

    if the SortedEquaSet is empty.

  47. abstract def inits: Iterator[SortedEquaSet]

    Iterates over the inits of this SortedEquaSet.

    Iterates over the inits of this SortedEquaSet. The first value will be this SortedEquaSet and the final one will be an empty SortedEquaSet, with the intervening values the results of successive applications of init.

    returns

    an iterator over all the inits of this SortedEquaSet

    Definition Classes
    SortedEquaSetEquaSet
    Example:
    1. SortedEquaSet(1,2,3).inits = Iterator(SortedEquaSet(1,2,3), SortedEquaSet(1,2), SortedEquaSet(1), SortedEquaSet())

  48. abstract def intersect(that: SortedEquaSets.EquaSet): SortedEquaSet

    Computes the intersection between this SortedEquaSet and another EquaSet.

    Computes the intersection between this SortedEquaSet and another EquaSet.

    that

    the EquaSet to intersect with.

    returns

    a new SortedEquaSet consisting of all elements that are both in this SortedEquaSet and in the given EquaSet that.

    Definition Classes
    SortedEquaSetEquaSet
  49. abstract def into[U](thatEquaSets: SortedEquaSets[U]): SortedEquaBridge[T]

    Make a SortedEquaBridge between this SortedEquaSet and the given thatEquaSets.

    Make a SortedEquaBridge between this SortedEquaSet and the given thatEquaSets. SortedEquaBridge enables this SortedEquaSet to transform into thatEquaSets.SortedEquaSet through collect, map, flatMap, flatten, scanLeft, scanRight.

    U

    the type of thatEquaSets

    thatEquaSets

    that SortedEquaSets to bridge to

    returns

    an instance of thatEquaSets.SortedEquaBridge

  50. abstract def into[U](thatEquaSets: EquaSets[U]): EquaBridge[T]

    Make an EquaBridge between this SortedEquaSet and the given thatEquaSets.

    Make an EquaBridge between this SortedEquaSet and the given thatEquaSets. EquaBridge enables this SortedEquaSet to transform into thatEquaSets.EquaSet through collect, map, flatMap, flatten, scanLeft, scanRight.

    U

    the type of thatEquaSets

    thatEquaSets

    that EquaSets to bridge to

    returns

    an instance of thatEquaSets.EquaBridge

    Definition Classes
    SortedEquaSetEquaSet
  51. abstract def isEmpty: Boolean

    Tests if this SortedEquaSet is empty.

    Tests if this SortedEquaSet is empty.

    returns

    true if there is no element in the set, false otherwise.

    Definition Classes
    SortedEquaSetEquaSet
  52. abstract def iterator: Iterator[T]

    Get an instance of Iterator for elements of this SortedEquaSet.

    Get an instance of Iterator for elements of this SortedEquaSet.

    returns

    an instance of Iterator for elements of this SortedEquaSet

    Definition Classes
    SortedEquaSetEquaSet
  53. abstract def last: T

    Selects the last element.

    Selects the last element.

    returns

    The last element of this EquaSet.

    Definition Classes
    EquaSet
    Exceptions thrown
    NoSuchElementException

    If the EquaSet is empty.

  54. abstract def lastOption: Option[T]

    Optionally selects the last element.

    Optionally selects the last element.

    returns

    the last element of this EquaSet if it is nonempty, None if it is empty.

    Definition Classes
    EquaSet
  55. abstract def map(f: (T) ⇒ T): SortedEquaSet

    Builds a new SortedEquaSet by applying a function to all elements of this SortedEquaSet.

    Builds a new SortedEquaSet by applying a function to all elements of this SortedEquaSet.

    f

    the function to apply to each element.

    returns

    a new SortedEquaSet resulting from applying the given function f to each element of this SortedEquaSet and collecting the results.

    Definition Classes
    SortedEquaSetEquaSet
  56. abstract def max[T1 >: T](implicit ord: Ordering[T1]): T

    Finds the largest element.

    Finds the largest element.

    T1

    The type over which the ordering is defined.

    ord

    An ordering to be used for comparing elements.

    returns

    the largest element of this EquaSet.

    Definition Classes
    EquaSet
  57. abstract def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Finds the first element which yields the largest value measured by function f.

    Finds the first element which yields the largest value measured by function f.

    B

    The result type of the function f.

    f

    The measuring function.

    cmp

    An ordering to be used for comparing elements.

    returns

    the first element of this EquaSet with the largest value measured by function f.

    Definition Classes
    EquaSet
  58. abstract def min[T1 >: T](implicit ord: Ordering[T1]): T

    Finds the smallest element.

    Finds the smallest element.

    T1

    The type over which the ordering is defined.

    ord

    An ordering to be used for comparing elements.

    returns

    the smallest element of this EquaSet

    Definition Classes
    EquaSet
  59. abstract def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Finds the first element which yields the smallest value measured by function f.

    Finds the first element which yields the smallest value measured by function f.

    B

    The result type of the function f.

    f

    The measuring function.

    cmp

    An ordering to be used for comparing elements.

    returns

    the first element of this EquaSet with the smallest value measured by function f.

    Definition Classes
    EquaSet
  60. abstract def mkString: String

    Displays all elements of this EquaSet in a string.

    Displays all elements of this EquaSet in a string.

    returns

    a string representation of this EquaSet. In the resulting string the string representations (w.r.t. the method toString) of all elements of this EquaSet follow each other without any separator string.

    Definition Classes
    EquaSet
  61. abstract def mkString(sep: String): String

    Displays all elements of this EquaSet in a string using a separator string.

    Displays all elements of this EquaSet in a string using a separator string.

    sep

    the separator string.

    returns

    a string representation of this EquaSet. In the resulting string the string representations (w.r.t. the method toString) of all elements of this EquaSet are separated by the string sep.

    Definition Classes
    EquaSet
    Example:
    1. EquaSet(1, 2, 3).mkString("|") = "1|2|3"

  62. abstract def mkString(start: String, sep: String, end: String): String

    Displays all elements of this EquaSet in a string using start, end, and separator strings.

    Displays all elements of this EquaSet in a string using start, end, and separator strings.

    start

    the starting string.

    sep

    the separator string.

    end

    the ending string.

    returns

    a string representation of this EquaSet. The resulting string begins with the string start and ends with the string end. Inside, the string representations (w.r.t. the method toString) of all elements of this EquaSet are separated by the string sep.

    Definition Classes
    EquaSet
    Example:
    1. EquaSet(1, 2, 3).mkString("(", "; ", ")") = "(1; 2; 3)"

  63. abstract def nonEmpty: Boolean

    Tests whether the EquaSet is not empty.

    Tests whether the EquaSet is not empty.

    returns

    true if the EquaSet contains at least one element, false otherwise.

    Definition Classes
    EquaSet
  64. abstract def partition(pred: (T) ⇒ Boolean): (SortedEquaSet, SortedEquaSet)

    Partitions this SortedEquaSet in two SortedEquaSets according to a predicate.

    Partitions this SortedEquaSet in two SortedEquaSets according to a predicate.

    pred

    the predicate on which to partition.

    returns

    a pair of SortedEquaSets: the first SortedEquaSet consists of all elements that satisfy the predicate p and the second SortedEquaSet consists of all elements that don't. The relative order of the elements in the resulting SortedEquaSets may not be preserved.

    Definition Classes
    SortedEquaSetEquaSet
  65. abstract def product[T1 >: T](implicit num: Numeric[T1]): T1

    Multiplies up the elements of this collection.

    Multiplies up the elements of this collection.

    T1

    the result type of the * operator.

    num

    an implicit parameter defining a set of numeric operations which includes the * operator to be used in forming the product.

    returns

    the product of all elements in this EquaSet of numbers of type Int. Instead of Int, any other type T with an implicit Numeric[T] implementation can be used as element type of the EquaSet and as result type of product. Examples of such types are: Long, Float, Double, BigInt.

    Definition Classes
    EquaSet
  66. abstract def reduce[T1 >: T](op: (T1, T1) ⇒ T1): T1

    Reduces the elements of this EquaSet using the specified associative binary operator.

    Reduces the elements of this EquaSet using the specified associative binary operator.

    T1

    A type parameter for the binary operator, a supertype of T.

    op

    A binary operator that must be associative.

    returns

    The result of applying reduce operator op between all the elements if the EquaSet is nonempty.

    Definition Classes
    EquaSet
    Exceptions thrown
    UnsupportedOperationException

    if this EquaSet is empty.

  67. abstract def reduceLeft[T1 >: T](op: (T1, T) ⇒ T1): T1

    Applies a binary operator to all elements of this EquaSet, going left to right.

    Applies a binary operator to all elements of this EquaSet, going left to right.

    T1

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this EquaSet, going left to right:

    op( op( ... op(x_1, x_2) ..., x_{n-1}), x_n)

    where x1, ..., xn are the elements of this EquaSet.

    Definition Classes
    EquaSet
    Exceptions thrown
    `UnsupportedOperationException`

    if this EquaSet is empty.

  68. abstract def reduceLeftOption[T1 >: T](op: (T1, T) ⇒ T1): Option[T1]

    Optionally applies a binary operator to all elements of this EquaSet, going left to right.

    Optionally applies a binary operator to all elements of this EquaSet, going left to right.

    T1

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceLeft(op) is this EquaSet is nonempty, None otherwise.

    Definition Classes
    EquaSet
  69. abstract def reduceOption[T1 >: T](op: (T1, T1) ⇒ T1): Option[T1]

    Reduces the elements of this EquaSet, if any, using the specified associative binary operator.

    Reduces the elements of this EquaSet, if any, using the specified associative binary operator.

    T1

    A type parameter for the binary operator, a supertype of T.

    op

    A binary operator that must be associative.

    returns

    An option value containing result of applying reduce operator op between all the elements if the collection is nonempty, and None otherwise.

    Definition Classes
    EquaSet
  70. abstract def reduceRight[T1 >: T](op: (T, T1) ⇒ T1): T1

    Applies a binary operator to all elements of this EquaSet, going right to left.

    Applies a binary operator to all elements of this EquaSet, going right to left.

    T1

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this EquaSet, going right to left:

    op(x_1, op(x_2, ..., op(x_{n-1}, x_n)...))

    where x1, ..., xn are the elements of this EquaSet.

    Definition Classes
    EquaSet
    Exceptions thrown
    `UnsupportedOperationException`

    if this EquaSet is empty.

  71. abstract def reduceRightOption[T1 >: T](op: (T, T1) ⇒ T1): Option[T1]

    Optionally applies a binary operator to all elements of this EquaSet, going right to left.

    Optionally applies a binary operator to all elements of this EquaSet, going right to left.

    T1

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceRight(op) is this EquaSet is nonempty, None otherwise.

    Definition Classes
    EquaSet
  72. abstract def repr: SortedSet[SortedEquaSets.EquaBox]

    The SortedSet[EquaBox] underlying this SortedEquaSet object.

    The SortedSet[EquaBox] underlying this SortedEquaSet object.

    Definition Classes
    SortedEquaSetEquaSet
  73. abstract def sameElements[T1 >: T](that: GenIterable[T1]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this EquaSet.

    Checks if the other iterable collection contains the same elements in the same order as this EquaSet.

    T1

    the type of the elements of collection that.

    that

    the collection to compare with.

    returns

    true, if both collections contain the same elements in the same order, false otherwise.

    Definition Classes
    EquaSet
  74. abstract def scanLeft(z: T)(op: (T, T) ⇒ T): SortedEquaSet

    Produces a collection containing cumulative results of applying the operator going left to right.

    Produces a collection containing cumulative results of applying the operator going left to right.

    z

    the initial value

    op

    the binary operator applied to the intermediate result and the element

    returns

    SortedEquaSet with intermediate results

    Definition Classes
    SortedEquaSetEquaSet
  75. abstract def scanRight(z: T)(op: (T, T) ⇒ T): SortedEquaSet

    Produces a collection containing cumulative results of applying the operator going right to left.

    Produces a collection containing cumulative results of applying the operator going right to left. The head of the collection is the last cumulative result.

    Example:

    `SortedEquaSet`(1, 2, 3, 4).scanRight(0)(_ + _) == `SortedEquaSet`(10, 9, 7, 4, 0)
    z

    the initial value

    op

    the binary operator applied to the intermediate result and the element

    returns

    SortedEquaSet with intermediate results

    Definition Classes
    SortedEquaSetEquaSet
  76. abstract def size: Int

    The size of this SortedEquaSet.

    The size of this SortedEquaSet.

    returns

    the number of elements in this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  77. abstract def slice(unc_from: Int, unc_until: Int): SortedEquaSet

    Selects an interval of elements.

    Selects an interval of elements. The returned collection is made up of all elements x which satisfy the invariant:

    from <= indexOf(x) < until
    unc_from

    the lowest index to include from this EquaSet.

    unc_until

    the lowest index to EXCLUDE from this EquaSet.

    returns

    an EquaSet containing the elements greater than or equal to index from extending up to (but not including) index until of this EquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  78. abstract def sliding(size: Int, step: Int): Iterator[SortedEquaSet]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.)

    size

    the number of elements per group

    step

    the distance between the first elements of successive groups (defaults to 1)

    returns

    An iterator producing SortedEquaSets of size size, except the last and the only element will be truncated if there are fewer elements than size.

    Definition Classes
    SortedEquaSetEquaSet
    See also

    scala.collection.Iterator, method sliding

  79. abstract def sliding(size: Int): Iterator[SortedEquaSet]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.)

    size

    the number of elements per group

    returns

    An iterator producing SortedEquaSets of size size, except the last and the only element will be truncated if there are fewer elements than size.

    Definition Classes
    SortedEquaSetEquaSet
    See also

    scala.collection.Iterator, method sliding

  80. abstract def span(pred: (T) ⇒ Boolean): (SortedEquaSet, SortedEquaSet)

    Splits this SortedEquaSet into a prefix/suffix pair according to a predicate.

    Splits this SortedEquaSet into a prefix/suffix pair according to a predicate.

    Note: c span p is equivalent to (but possibly more efficient than) (c takeWhile p, c dropWhile p), provided the evaluation of the predicate p does not cause any side-effects.

    pred

    the test predicate

    returns

    a pair consisting of the longest prefix of this SortedEquaSet whose elements all satisfy p, and the rest of this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  81. abstract def splitAt(n: Int): (SortedEquaSet, SortedEquaSet)

    Splits this SortedEquaSet into two at a given position.

    Splits this SortedEquaSet into two at a given position. Note: c splitAt n is equivalent to (but possibly more efficient than) (c take n, c drop n).

    n

    the position at which to split.

    returns

    a pair of SortedEquaSets consisting of the first n elements of this SortedEquaSet, and the other elements.

    Definition Classes
    SortedEquaSetEquaSet
  82. abstract def stringPrefix: String

    Defines the prefix of this object's toString representation.

    Defines the prefix of this object's toString representation.

    returns

    a string representation which starts the result of toString applied to this EquaSet. By default the string prefix is the simple name of the collection class EquaSet.

    Definition Classes
    EquaSet
  83. abstract def subsetOf(that: SortedEquaSets.EquaSet): Boolean

    Tests whether this set is a subset of another set.

    Tests whether this set is a subset of another set.

    that

    the set to test.

    returns

    true if this set is a subset of that, i.e. if every element of this set is also an element of that.

    Definition Classes
    EquaSet
  84. abstract def subsets: Iterator[SortedEquaSet]

    An iterator over all subsets of this set.

    An iterator over all subsets of this set.

    returns

    the iterator.

    Definition Classes
    SortedEquaSetEquaSet
  85. abstract def subsets(len: Int): Iterator[SortedEquaSet]

    An iterator over all subsets of this set of the given size.

    An iterator over all subsets of this set of the given size. If the requested size is impossible, an empty iterator is returned.

    len

    the size of the subsets.

    returns

    the iterator.

    Definition Classes
    SortedEquaSetEquaSet
  86. abstract def sum[T1 >: T](implicit num: Numeric[T1]): T1

    Sums up the elements of this collection.

    Sums up the elements of this collection.

    T1

    the result type of the + operator.

    num

    an implicit parameter defining a set of numeric operations which includes the + operator to be used in forming the sum.

    returns

    the sum of all elements in this EquaSet of numbers of type Int. Instead of Int, any other type T with an implicit Numeric[T] implementation can be used as element type of the EquaSet and as result type of sum. Examples of such types are: Long, Float, Double, BigInt.

    Definition Classes
    EquaSet
  87. abstract def tail: SortedEquaSet

    Selects all elements except the first.

    Selects all elements except the first.

    returns

    a SortedEquaSet consisting of all elements of this SortedEquaSet except the first one.

    Definition Classes
    SortedEquaSetEquaSet
    Exceptions thrown
    `UnsupportedOperationException`

    if the SortedEquaSet is empty.

  88. abstract def tails: Iterator[SortedEquaSet]

    Iterates over the tails of this SortedEquaSet.

    Iterates over the tails of this SortedEquaSet. The first value will be this SortedEquaSet and the final one will be an empty SortedEquaSet, with the intervening values the results of successive applications of tail.

    returns

    an iterator over all the tails of this SortedEquaSet

    Definition Classes
    SortedEquaSetEquaSet
    Example:
    1. SortedEquaSet(1,2,3).tails = Iterator(SortedEquaSet(1,2,3), SortedEquaSet(2,3), SortedEquaSet(3), SortedEquaSet())

  89. abstract def take(n: Int): SortedEquaSet

    Selects first n elements.

    Selects first n elements.

    n

    the number of elements to take from this SortedEquaSet.

    returns

    a SortedEquaSet consisting only of the first n elements of this SortedEquaSet, or else the whole SortedEquaSet, if it has less than n elements.

    Definition Classes
    SortedEquaSetEquaSet
  90. abstract def takeRight(n: Int): SortedEquaSet

    Selects last n elements.

    Selects last n elements.

    n

    the number of elements to take

    returns

    a SortedEquaSet consisting only of the last n elements of this SortedEquaSet, or else the whole SortedEquaSet, if it has less than n elements.

    Definition Classes
    SortedEquaSetEquaSet
  91. abstract def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, SortedEquaSets.EquaBox, Col[SortedEquaSets.EquaBox]]): Col[SortedEquaSets.EquaBox]

    Converts this EquaSet into another by copying all elements.

    Converts this EquaSet into another by copying all elements.

    Col

    The collection type to build.

    returns

    a new collection containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  92. abstract def toArray: Array[T]

    Converts this EquaSet to an array.

    Converts this EquaSet to an array.

    returns

    an array containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  93. abstract def toBuffer: Buffer[T]

    Uses the contents of this EquaSet to create a new mutable buffer.

    Uses the contents of this EquaSet to create a new mutable buffer.

    returns

    a buffer containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  94. abstract def toEquaBoxArray: Array[SortedEquaSets.EquaBox]

    Converts this EquaSet to an array of EquaBoxes containing the elements.

    Converts this EquaSet to an array of EquaBoxes containing the elements.

    returns

    an array containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  95. abstract def toEquaBoxBuffer: Buffer[SortedEquaSets.EquaBox]

    Uses the contents of this EquaSet to create a new mutable buffer containing EquaBoxes of elements.

    Uses the contents of this EquaSet to create a new mutable buffer containing EquaBoxes of elements.

    returns

    a buffer containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  96. abstract def toEquaBoxIndexedSeq: IndexedSeq[SortedEquaSets.EquaBox]

    Converts this EquaSet to an indexed sequence containing EquaBoxes of elements.

    Converts this EquaSet to an indexed sequence containing EquaBoxes of elements.

    returns

    an indexed sequence containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  97. abstract def toEquaBoxIterable: GenIterable[SortedEquaSets.EquaBox]

    Converts this EquaSet to an iterable collection of EquaBoxes containing the elements.

    Converts this EquaSet to an iterable collection of EquaBoxes containing the elements. Note that the choice of target Iterable is lazy in this default implementation as this TraversableOnce may be lazy and unevaluated (i.e. it may be an iterator which is only traversable once).

    returns

    an Iterable containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  98. abstract def toEquaBoxIterator: Iterator[SortedEquaSets.EquaBox]

    Returns an Iterator over the EquaBoxes in this EquaSet.

    Returns an Iterator over the EquaBoxes in this EquaSet. Will return the same Iterator if this instance is already an Iterator.

    returns

    an Iterator containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  99. abstract def toEquaBoxList: List[SortedEquaSets.EquaBox]

    Converts this EquaSet to a list of EquaBox.

    Converts this EquaSet to a list of EquaBox.

    returns

    a list containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  100. abstract def toEquaBoxParArray: ParArray[SortedEquaSets.EquaBox]

    Converts this EquaSet to a ParArray containing EquaBoxes of elements.

    Converts this EquaSet to a ParArray containing EquaBoxes of elements.

    returns

    a ParArray containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  101. abstract def toEquaBoxSeq: GenSeq[SortedEquaSets.EquaBox]

    Converts this EquaSet to a sequence containing EquaBoxes of elements.

    Converts this EquaSet to a sequence containing EquaBoxes of elements. As with toIterable, it's lazy in this default implementation, as this TraversableOnce may be lazy and unevaluated.

    returns

    a sequence containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  102. abstract def toEquaBoxSet: SortedSet[SortedEquaSets.EquaBox]

    Converts this SortedEquaSet to a set of EquaBox.

    Converts this SortedEquaSet to a set of EquaBox.

    returns

    a set containing all elements of this SortedEquaSet, boxed in EquaBox.

    Definition Classes
    SortedEquaSetEquaSet
  103. abstract def toEquaBoxStream: Stream[SortedEquaSets.EquaBox]

    Converts this EquaSet to a stream of EquaBoxes containing the elements.

    Converts this EquaSet to a stream of EquaBoxes containing the elements.

    returns

    a stream containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  104. abstract def toEquaBoxTraversable: GenTraversable[SortedEquaSets.EquaBox]

    Converts this EquaSet to a Traversable of EquaBoxes containing the elements.

    Converts this EquaSet to a Traversable of EquaBoxes containing the elements.

    returns

    a Traversable containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  105. abstract def toEquaBoxVector: Vector[SortedEquaSets.EquaBox]

    Converts this EquaSet to a Vector of EquaBoxes containing the elements.

    Converts this EquaSet to a Vector of EquaBoxes containing the elements.

    returns

    a vector containing all elements of this EquaSet, boxed in EquaBox.

    Definition Classes
    EquaSet
  106. abstract def toIndexedSeq: IndexedSeq[T]

    Converts this EquaSet to an indexed sequence.

    Converts this EquaSet to an indexed sequence.

    returns

    an indexed sequence containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  107. abstract def toIterable: GenIterable[T]

    Converts this EquaSet to an iterable collection.

    Converts this EquaSet to an iterable collection. Note that the choice of target Iterable is lazy in this default implementation as this TraversableOnce may be lazy and unevaluated (i.e. it may be an iterator which is only traversable once).

    returns

    an Iterable containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  108. abstract def toIterator: Iterator[T]

    Returns an Iterator over the elements in this EquaSet.

    Returns an Iterator over the elements in this EquaSet. Will return the same Iterator if this instance is already an Iterator.

    returns

    an Iterator containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  109. abstract def toList: List[T]

    Converts this EquaSet to a list.

    Converts this EquaSet to a list.

    returns

    a list containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  110. abstract def toMap[K, V](implicit ev: <:<[T, (K, V)]): Map[K, V]

    Converts this EquaSet to a map.

    Converts this EquaSet to a map. This method is unavailable unless the elements are members of Tuple2, each ((K, V)) becoming a key-value pair in the map. Duplicate keys will be overwritten by later keys: if this is an unordered EquaSet, which key is in the resulting map is undefined.

    returns

    a map of type immutable.Map[K, V] containing all key/value pairs of type (K, V) of this EquaSet.

    Definition Classes
    EquaSet
  111. abstract def toParArray: ParArray[T]

    Converts this EquaSet to a ParArray.

    Converts this EquaSet to a ParArray.

    returns

    a ParArray containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  112. abstract def toSeq: GenSeq[T]

    Converts this EquaSet to a sequence.

    Converts this EquaSet to a sequence. As with toIterable, it's lazy in this default implementation, as this TraversableOnce may be lazy and unevaluated.

    returns

    a sequence containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  113. abstract def toSet: SortedSet[T]

    Converts this SortedEquaSet to a set.

    Converts this SortedEquaSet to a set.

    returns

    a set containing all elements of this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
  114. abstract def toStream: Stream[T]

    Converts this EquaSet to a stream.

    Converts this EquaSet to a stream.

    returns

    a stream containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  115. abstract def toTraversable: GenTraversable[T]

    Converts this EquaSet to a Traversable.

    Converts this EquaSet to a Traversable.

    returns

    a Traversable containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  116. abstract def toVector: Vector[T]

    Converts this EquaSet to a Vector.

    Converts this EquaSet to a Vector.

    returns

    a vector containing all elements of this EquaSet.

    Definition Classes
    EquaSet
  117. abstract def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): SortedEquaSet

    Transposes this SortedEquaSet of traversable collections into a SortedEquaSet of GenTraversableOnces.

    Transposes this SortedEquaSet of traversable collections into a SortedEquaSet of GenTraversableOnces.

    The resulting collection's type will be guided by the static type of EquaSet. For example:

    val xs = SortedEquaSet(
    List(1, 2, 3),
    List(4, 5, 6)).transpose
    // xs == SortedEquaSet(
    // List(1, 4),
    // List(2, 5),
    // List(3, 6))
    
    val ys = SortedEquaSet(
    List(1, 2, 3),
    List(4, 5, 6)).transpose
    // ys == SortedEquaSet(
    // Vector(1, 4),
    // Vector(2, 5),
    // Vector(3, 6))
    B

    the type of the elements of each traversable collection.

    asTraversable

    an implicit conversion which asserts that the element type of this SortedEquaSet is a Traversable.

    returns

    a two-dimensional SortedEquaSet of ${coll}s which has as nth row the nth column of this SortedEquaSet.

    Definition Classes
    SortedEquaSetEquaSet
    Exceptions thrown
    `IllegalArgumentException`

    if all collections in this SortedEquaSet are not of the same size.

  118. abstract def union(that: SortedEquaSets.EquaSet): SortedEquaSet

    Computes the union between of set and another set.

    Computes the union between of set and another set.

    that

    the set to form the union with.

    returns

    a new set consisting of all elements that are in this set or in the given set that.

    Definition Classes
    SortedEquaSetEquaSet
  119. abstract def unzip[T1, T2](t1EquaSets: EquaSets[T1], t2EquaSets: EquaSets[T2])(implicit asPair: (T) ⇒ (T1, T2)): (EquaSet, EquaSet)

    Converts this EquaSet of pairs into two collections of the first and second half of each pair.

    Converts this EquaSet of pairs into two collections of the first and second half of each pair.

    val xs = `EquaSet`(
    (1, "one"),
    (2, "two"),
    (3, "three")).unzip
    // xs == (`EquaSet`(1, 2, 3),
    // `EquaSet`(one, two, three))
    T1

    the type of the first half of the element pairs

    T2

    the type of the second half of the element pairs

    asPair

    an implicit conversion which asserts that the element type of this EquaSet is a pair.

    returns

    a pair of EquaSets, containing the first, respectively second half of each element pair of this EquaSet.

    Definition Classes
    EquaSet
  120. abstract def unzip3[T1, T2, T3](t1EquaSets: EquaSets[T1], t2EquaSets: EquaSets[T2], t3EquaSets: EquaSets[T3])(implicit asTriple: (T) ⇒ (T1, T2, T3)): (EquaSet, EquaSet, EquaSet)

    Converts this EquaSet of triples into three collections of the first, second, and third element of each triple.

    Converts this EquaSet of triples into three collections of the first, second, and third element of each triple.

    val xs = `EquaSet`(
    (1, "one", '1'),
    (2, "two", '2'),
    (3, "three", '3')).unzip3
    // xs == (`EquaSet`(1, 2, 3),
    // `EquaSet`(one, two, three),
    // `EquaSet`(1, 2, 3))
    T1

    the type of the first member of the element triples

    T2

    the type of the second member of the element triples

    T3

    the type of the third member of the element triples

    asTriple

    an implicit conversion which asserts that the element type of this EquaSet is a triple.

    returns

    a triple of EquaSets, containing the first, second, respectively third member of each element triple of this EquaSet.

    Definition Classes
    EquaSet
  121. abstract def view(from: Int, until: Int): TraversableView[SortedEquaSets.EquaBox, Set[SortedEquaSets.EquaBox]]

    Creates a non-strict view of a slice of this EquaSet.

    Creates a non-strict view of a slice of this EquaSet.

    Note: the difference between view and slice is that view produces a view of the current EquaSet, whereas slice produces a new EquaSet.

    Note: view(from, to) is equivalent to view.slice(from, to) $orderDependent

    from

    the index of the first element of the view

    until

    the index of the element following the view

    returns

    a non-strict view of a slice of this EquaSet, starting at index from and extending up to (but not including) index until.

    Definition Classes
    EquaSet
  122. abstract def view: TraversableView[SortedEquaSets.EquaBox, Set[SortedEquaSets.EquaBox]]

    Creates a non-strict view of this EquaSet.

    Creates a non-strict view of this EquaSet.

    returns

    a non-strict view of this EquaSet.

    Definition Classes
    EquaSet
  123. abstract def zip[U](that: GenIterable[U]): Set[(T, U)]

    Returns an EquaSet formed from this EquaSet and another iterable collection by combining corresponding elements in pairs.

    Returns an EquaSet formed from this EquaSet and another iterable collection by combining corresponding elements in pairs. If one of the two collections is longer than the other, its remaining elements are ignored.

    U

    the type of the second half of the returned pairs

    that

    The iterable providing the second half of each result pair

    returns

    a Set containing pairs consisting of corresponding elements of this EquaSet and that. The length of the returned collection is the minimum of the lengths of this EquaSet and that.

    Definition Classes
    EquaSet
  124. abstract def zipAll[U, T1 >: T](that: GenIterable[U], thisElem: T1, thatElem: U): Set[(T1, U)]

    Returns an EquaSet formed from this EquaSet and another iterable collection by combining corresponding elements in pairs.

    Returns an EquaSet formed from this EquaSet and another iterable collection by combining corresponding elements in pairs. If one of the two collections is shorter than the other, placeholder elements are used to extend the shorter collection to the length of the longer.

    that

    the iterable providing the second half of each result pair

    thisElem

    the element to be used to fill up the result if this EquaSet is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this EquaSet.

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this EquaSet and that. The length of the returned collection is the maximum of the lengths of this EquaSet and that. If this EquaSet is shorter than that, thisElem values are used to pad the result. If that is shorter than this EquaSet, thatElem values are used to pad the result.

    Definition Classes
    EquaSet
  125. abstract def zipWithIndex: Set[(T, Int)]

    Zips this EquaSet with its indices.

    Zips this EquaSet with its indices.

    returns

    A new EquaSet containing pairs consisting of all elements of this EquaSet paired with their index. Indices start at 0.

    Definition Classes
    EquaSet
    Example:
    1. List("a", "b", "c").zipWithIndex = List(("a", 0), ("b", 1), ("c", 2))

  126. abstract def |(that: SortedEquaSets.EquaSet): SortedEquaSet

    Computes the union between this SortedEquaSet and another EquaSet.

    Computes the union between this SortedEquaSet and another EquaSet.

    Note: Same as union.

    that

    the EquaSet to form the union with.

    returns

    a new SortedEquaSet consisting of all elements that are in this SortedEquaSet or in the given EquaSet that.

    Definition Classes
    SortedEquaSetEquaSet

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: (Boolean) ⇒ A): (T) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compose[A](g: (A) ⇒ T): (A) ⇒ Boolean

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def isTraversableAgain: Boolean

    Tests whether this EquaSet can be repeatedly traversed.

    Tests whether this EquaSet can be repeatedly traversed. Always true for EquaSet unless overridden.

    returns

    true unless overriden.

    Definition Classes
    EquaSet
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def withFilter(p: (T) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this EquaSet.

    Creates a non-strict filter of this EquaSet.

    Note: the difference between c filter p and c withFilter p is that the former creates a new EquaSet, whereas the latter only restricts the domain of subsequent map, flatMap, foreach, and withFilter operations.

    p

    the predicate used to test elements.

    returns

    an object of class FilterMonadic, which supports map, flatMap, foreach, and withFilter operations. All these operations apply to those elements of this EquaSet which satisfy the predicate p.

    Definition Classes
    EquaSet

Inherited from SortedEquaSets.EquaSet

Inherited from Equals

Inherited from (T) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped