Skip to content

Category Archives: Scala

In Scala mutable collections, SortedSet foreach() method is utilized to apply the given function to all the elements of the SortedSet. Method Definition: def foreach(f:… Read More
In Scala mutable collections, SortedSet The intersect() method is utilized to compute the intersection between two SortedSets. Method Definition: def intersect(that: SortedSet[A]): SortedSet[A] Return Type:… Read More
In Scala mutable collections, SortedSet head() method is utilized to display the first element of the SortedSet. Method Definition: def head: A Return Type: It… Read More
In Scala mutable collections, SortedSet isEmpty() method is utilized to test if the SortedSet is empty or not. Method Definition: def isEmpty: Boolean Return Type:… Read More
In Scala mutable collections, SortedSet init() method is utilized to find all the elements of the SortedSet except the last one. Method Definition: def init:… Read More
In Scala mutable collection, &() method is utilized to create a new SortedSet consisting of all elements that are present in both the given SortedSets.… Read More
In Scala mutable collections, dropWhile() method is utilized to drop the longest prefix of elements from the SortedSet that satisfies the stated condition. Method Definition:… Read More
In Scala mutable collections, splitAt() method is utilized to split the given SortedSet into a prefix/suffix pair at a stated position. Method Definition: def splitAt(n:… Read More
In Scala mutable collections, mkString() method is utilized to display all elements of the SortedSet in a string. Method Definition: def mkString: String Return Type:… Read More
In Scala mutable collections, toMap() method is utilized to return a map consisting of all the elements of the SortedSet. Method Definition: def toMap[T, U]:… Read More
In Scala mutable collections, toList() method is utilized to return a list consisting of all the elements of the SortedSet. Method Definition: def toList: List[A]… Read More
In Scala mutable collections, count() method is utilized to count the number of elements in the SortedSet. Method Definition: def count(p: (A) => Boolean): Int… Read More
In Scala mutable collections, last() method is utilized to return the last element of the SortedSet. Method Definition: def last: A Return Type: It returns… Read More
In Scala mutable collections, map() method is utilized to build a new SortedSet by applying a function to all elements of this SortedSet. Method Definition:… Read More
In Scala mutable collections, max() method is utilized to find the largest element of all the elements in the SortedSet. Method Definition: def max: A… Read More