Skip to content

Category Archives: Scala

In Scala mutable collection apply() method is utilized to test if some elements are exist in the SortedSet. Method Definition: def apply(elem: A) Return Type:… Read More
In Scala mutable collection contains() method is utilized to check if an element is present in the SortedSet or not. Method Definition: def contains(elem: A):… Read More
In Scala mutable collection, diff() method is utilized to compute the difference of a SortedSet and an another SortedSet. Method Definition: def diff(that: SortedSet[A]): SortedSet[A]… Read More
In scala mutable collection, dropRight() is utilized to return all elements except last ‘n’ elements. Method Definition: def dropRight(n: Int): SortedSet[A] Return Type: It returns… Read More
In Scala mutable collection, equals() method is utilized to check whether the two SortedSets have the same elements or not. Method Definition: def equals(that: Any):… Read More
In scala mutable collection, drop() method is utilized to delete the first ‘n’ elements or to return all elements except first ‘n’ elements. Method Definition:… Read More
In Scala mutable collection, subsetOf() method is utilised to test if a SortedSet is a subSortedSet of another SortedSet. Method Definition: subsetOf(that: SortedSet[A]): Boolean Return… Read More
In any programming language, there are two types of functions:  1. PURE FUNCTIONS 2. IMPURE FUNCTIONSThere is a basic difference between the two, that is… Read More
In Scala mutable collections, tail() method is utilized to return a SortedSet consisting of all the elements except the first element of the SortedSet. Method… Read More
In Scala mutable collections, +() method is utilized to create a new SortedSet with an additional element unless the element is already present. Method Definition:… Read More
In Scala mutable collections, SortedSet -() method is utilized to creates a new SortedSet with a given element removed from the SortedSet. Method Definition: def… Read More
In Scala mutable collections, SortedSet toBuffer() method is utilized to return a buffer consisting of all the elements of the SortedSet. Method Definition: def toBuffer[B… Read More
In Scala mutable collections, SortedSet toString() method is utilized to return a string consisting of all the elements of the SortedSet. Method Definition: def toString():… Read More
In Scala mutable collections, SortedSet toSeq() method is utilized to return a seq consisting of all the elements of the SortedSet. Method Definition: def toSeq:… Read More
In Scala mutable collections, SortedSet subsetOf() method is utilized to test if a SortedSet is a subSortedSet of another SortedSet. Method Definition: def subsetOf(that: SortedSet[A]):… Read More

Start Your Coding Journey Now!