Skip to content

Tag Archives: Scala

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
In Scala mutable collections, takeRight() method is utilized to return a SortedSet consisting of last ‘n’ elements of the SortedSet. Method Definition: def takeRight(n: Int):SortedSet[A]… Read More
In Scala mutable collections, min() method is utilized to find the smallest element of all the elements in the stated list. Method Definition: def min:… Read More
In Scala mutable collections, toArray() is utilized to return an array consisting of all the elements of the SortedSet. Method Definition: def toArray: Array[A] Return… Read More
In Scala mutable collections, sum() method is utilized to find the sum of all the elements of the SortedSet. Method Definition: def sum: A Return… Read More
In Scala mutable collections, take() method is utilized to return a SortedSet consisting of first ‘n’ elements of the SortedSet. Method Definition: def take(n: Int):… Read More
Scala may be a exceptionally multi-paradigm language that can run anyplace from being distant betteran improved Java to a more regrettable Haskell. This implies that… Read More
In Scala, you can use anonymous functions with map method. And here we will discuss the usage of multiple line anonymous functions with map. Therefore,… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toLong() method is utilized to convert the specified number into… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toDouble() method is utilized to convert the specified number into… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toByte() method is utilized to convert the specified number into… Read More