Skip to content

Category Archives: Scala

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 an array of String can be converted to an array of Int, utilizing map function. Here, the strings of the stated array will… 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
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toFloat() 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 toChar() 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 toShort() method is utilized to convert the specified number into… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toShort() method is utilized to convert the specified… Read More