Skip to content

Category Archives: Scala

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
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:  1. PURE FUNCTIONS 2. IMPURE FUNCTIONSThere is a basic difference between the two, that is… 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