Scala List dropWhile() operation with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List dropWhile() operation with examples. dropWhile() operation is a useful operation of the Scala List which allows us to drop prefix elements from the list or collection based on a given predicate function. When you call this operation on a Scala list, it returns a new collection by […]

Scala List drop() operation with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List drop() operation with examples. drop() operation is a useful operation of the Scala List which allows us to drop first N elements from the list or collection. When you call this operation on a Scala list, it returns a new collection by dropping the first N elements. […]

Scala List addString() with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List addString() operation with examples. There is an alternative to addString() operation in Scala, please have a look at mkString() List() is a collection to store values in an ordered fashion. addString() is the most useful method of a Scala collection which allows generating a string builder by […]

Scala List mkString() with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List mkString() operation with examples. There is an alternative to mkString() operation in Scala, please have a look at addString() List() is a collection to store values in an ordered fashion. mkString() is the most useful method of a Scala collection which allows generating a string based on the […]

Scala List count() operation with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List count() operation with examples. List() is a collection to store values in an ordered fashion. count() operation is a useful operation of the Scala List which allows us to count the number of elements of the list based on a given predicate function. When you call this […]

Scala List sum() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List sum() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]

Scala List max() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List max() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]

Scala List min() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List min() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]

Scala List distinct() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List distinct() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]

Scala List tail() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List tail() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]

Scala List last() operation with examples

Welcome to Scala series. In this tutorial, you will learn about Scala List last() operation with examples. Scala List List() is a collection to store values in an ordered fashion. It allows store duplicate values. List() extends LinearSeq() trait and it is based on Last In First Out model. List() is part of both immutable and mutable collection package of Scala. […]