Skip to content

Category Archives: Scala

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
In Scala immutable TreeSet class, the dropWhile() method is utilized to drop the longest prefix from the front which satisfies a given predicate in a… Read More
In Scala immutable TreeSet class, the dropRight() method is utilized to drop the last ‘n’ elements of the TreeSet. Method Definition: def dropRight(n: Int): TreeSet[A]… Read More
In Scala immutable TreeSet class, the drop() method is utilized to drop the first ‘n’ elements of the TreeSet. Method Definition: def drop(n: Int): TreeSet[A]… Read More
In Scala immutable TreeSet class, the foreach() method is utilized to apply a given function to all the elements of the TreeSet. Method Definition: def… Read More
In Scala immutable TreeSet class, the forall() method is utilized to check if a predicate holds true for all the elements of the TreeSet. Method… Read More
In Scala immutable TreeSet class head() method is utilized to return the first element of the TreeSet. Method Definition: def head: A Return Type: It… Read More
In Scala immutable TreeSet class the diff() method is used to find the difference between the two TreeSet. It deletes elements that are present in… Read More
In Scala immutable TreeSet class the min() method is utilized to return the smallest element of the TreeSet. Method Definition: def min: A Return Type:… Read More
In Scala immutable TreeSet class the max() method is utilized to return the largest method of the TreeSet. Method Definition: def max: A Return Type:… Read More