Skip to content

Category Archives: Scala

In Scala immutable TreeSet class map() method is utilized to build a new TreeSet by applying a function to all elements of the given TreeSet.… Read More
In Scala immutable TreeSet class last() method is utilized to return the last element of the TreeSet. Method Definition: def last: A Return Type: It… Read More
In Scala immutable TreeSet class the size() method is utilised to return the number of elements present in the TrreSet. Method Definition: def size: Int… Read More
In Scala immutable TreeSet class, the find() method is utilised to return an element that satisfies a given predicate in the TreeSet. Method Definition: def… Read More
In Scala immutable TreeSet class, the filter() method is utilised to return a new TreeSet that consists of all the elements that satisfy a given… Read More
In Scala immutable TreeSet class, the exists() method is utilised to check whether a predicate holds for any of the elements of the TreeSet. Method… Read More
In Scala immutable TreeSet class, the equals() method is utilised to check if two TreeSets consists of the exactly same elements or not. Method Definition:… Read More
In Scala immutable TreeSet class, the intersect() method is utilised to return a new TreeSet that consists of elements that are present in both the… Read More
In Scala immutable TreeSet class isEmpty() is utilized to check if the TreeSet is empty or not. Method Definition: def isEmpty: Boolean Return Type: It… Read More
In Scala immutable TreeSet class the mkString() method is utilized to display all elements of the TreeSet in a string. Method Definition: def mkString: String… Read More
In Scala immutable TreeSet class the mkString() method is utilised to display all the elements of the TreeSet in a string along with a separator.… Read More
In Scala immutable TreeSet class the product() method is utilized to return the product of all the elements of the TreeSet. Method Definition: def product:… Read More
In Scala immutable TreeSet class the takeRight() method is utilised to return a TreeSet consisting of the last ‘n’ elements of the TreeSet. Method Definition:… Read More
In Scala immutable TreeSet class the take() method is utilized to return a TreeSet consisting of the first ‘n’ elements of the TreeSet. Method Definition:… Read More
In Scala immutable TreeSet class the splitAt() method is utilized to split the given TreeSet into a prefix/suffix pair of TreeSet at a stated position.… Read More