Skip to content

Tag Archives: Scala-Method

Scala Case classes come shipped in with many handy methods. The Scala compiler generates boilerplate code when a case class is defined. This does away… Read More
A set is a collection that only contains unique items. In Scala, both mutable and immutable sets are available. The mutable set is those set… 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

Start Your Coding Journey Now!