Skip to content

Tag Archives: Scala

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
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