Skip to content

Category Archives: Scala

In Scala immutable TreeSet class the sum() method is utilized to return the sum of all the elements of the TreeSet. Method Definition: def sum:… Read More
In Scala immutable TreeSet class the toArray() is utilised to return an array consisting of all the elements of the TreeSet. Method Definition: def toArray:… Read More
In Scala immutable TreeSet class the toBuffer() method is utilized to return a buffer consisting of all the elements of the TreeSet. Method Definition: def… Read More
In Scala immutable TreeSet class the toList() method is utilised to return a list consisting of all the elements of the TreeSet. Method Definition: def… Read More
Sequence is an iterable collection of class Iterable. It is used to represent indexed sequences that are having a defined order of element i.e. guaranteed… Read More
In this article we shall discuss how the Unified Type System works in Scala. A Unified Type System essentially means that there is one Super-Type… Read More
In Scala Mutable collection the copyToArray() method is utilized in copying the elements of the SortedSet to an Array. Method Definition: def copyToArray(xs: Array[A], start:… Read More
In Scala mutable collection &~() method is utilized to create a new SortedSet consisting of elements after the difference between two given SortedSets. Method Definition:… Read More
In Scala mutable collection, ++() method is utilized to add elements of one SortedSet to another SortedSet. Method Definition: def ++(elems: A): SortedSet[A] Return Type:… Read More
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