Skip to content

Tag Archives: Scala immutable-TreeSet

In Scala immutable TreeSet class, the init() method is utilized to return a new TreeSet that consists of all the elements except the last one.… Read More
In Scala immutable TreeSet class the toMap() method is utilised to return a map consisting of all the elements of the TreeSet. Method Definition: def… Read More
In Scala immutable TreeSet class the toSeq() method is utilised to return a seq consisting of all the elements of the TreeSet. Method Definition: def… Read More
In Scala immutable TreeSet class the toString() method is utilised to return a string representation of the TreeSet object. Method Definition: def toString(): String Return… Read More
In Scala immutable TreeSet class, the &() method is utilised to return a new TreeSet containing elements that are present in both the given TreeSets.… Read More
In Scala immutable TreeSet class, the &~() method is utilised to return a new TreeSet which contains the difference between two TreeSets. Method Definition: def… Read More
In Scala immutable TreeSet class, the +() method is utilised to add an element to the TreeSet unless it is already present. Method Definition: def… Read More
In Scala immutable TreeSet class, the contains() method is utilized to check if an element is present in the TreeSet of not. Method Definition: def… Read More
In Scala immutable TreeSet class, the ++() method is utilised to add elements of one TreeSet to another TreeSet. Method Definition: def ++(that: IterableOnce[A]): TreeSet[A]… Read More
In Scala immutable TreeSet class, the -() method is utilized to remove an element from the given TreeSet. Method Definition: def -(elem: A): TreeSet[A] Return… Read More
In Scala immutable TreeSet class, the –() method is utilised to subtract elements of one TreeSet to another TreeSet. Method Definition: def –(that: IterableOnce[A]): TreeSet[A]… Read More
In Scala immutable TreeSet class, the count() method is utilized to count the number of elements in the TreeSet that satisfies a given predicate. Method… Read More
In Scala immutable TreeSet class, the copyToArray() method is utilized in copying the elements of the TreeSet to an Array. Method Definition: def copyToArray[B >:… Read More
In Scala immutable TreeSet class, the clone() method is used to create a copy of the given TreeSet. Method Definition: def clone(): Queue[A] Return Type:… Read More
In Scala immutable TreeSet class, the clear() method is utilized to delete all the elements of the TreeSet. Method Definition: def clear(): Unit Return Type:… Read More