Skip to content

Category Archives: Scala

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: Pure Funtions Impure Functions There is a basic difference between the two, that is pure… 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
In Scala mutable collections, SortedSet product() method is utilized to find the product of all the elements of the SortedSet. Method Definition: def product: A… Read More
In Scala mutable collections, SortedSet size() method is utilized to find the number of elements in the SortedSet. Method Definition: def size: Int Return Type:… Read More
In Scala mutable collections, SortedSet find() method is utilized to find the first element of the SortedSet that satisfies the given predicate if present. Method… Read More
In Scala mutable collections, SortedSet exists() method is utilized to test whether a predicate holds for some of the elements of the SortedSet or not.… Read More
In Scala mutable collections, SortedSet filter() method is utilized to select all elements of the SortedSet which satisfies a stated predicate. Method Definition: def filter(p:… Read More
In Scala mutable collections, SortedSet forall() method is utilized to check if the given predicate satisfies all the elements of the SortedSet or not. Method… Read More