Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
Scala
1.8K+ articles
Scala-Method
1.3K+ articles
Scala
1.2K+ articles
Scala-Keyword
5+ articles
Scala list-program
1+ articles
Scala-list
39 posts
Recent Articles
Popular Articles
Scala - Covariance
Last Updated: 03 July 2020
Variance is the interconnection of Sub-Typing relationships which are either of complicated types or of their constituent types. Scala provides three types of variance: ...
read more
Picked
Scala
Scala-list
Scala List isEmpty Operation with example
Last Updated: 13 August 2019
The isEmpty operation is utilized to check if the stated list is empty or not.Syntax:m1.isEmptyHere, m1 is Map name. isEmpty is method which returns true if the stated lis...
read more
Scala
Scala
Scala-list
Scala List mkString() method with a start, a separator and an end with example
Last Updated: 13 August 2019
This method is same as mkString() method but here a start, a separator and an end is also included.Method Definition: defmkString(start: String, sep: String, end: String):...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List mkString() method with a separator with example
Last Updated: 13 August 2019
The mkString() method is utilized to display all the elements of the list in a string along with a separator.Method Definition: def mkString(sep: String): StringReturn Typ...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List mkString() method with example
Last Updated: 13 August 2019
The mkString() method is utilized to display all the elements of the list in a string.Method Definition: def mkString: StringReturn Type: It returns all the elements of th...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List map() method with example
Last Updated: 13 August 2019
The map() method is utilized to apply the stated function to all the elements of the list.Method Definition: def map[B](f: (A) = B): List[B]Return Type: It returns a new ...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List length() method with example
Last Updated: 13 August 2019
The length() method is utilized to find the length of the list.Method Definition: def length: IntReturn Type: It returns the length of the list stated.Example: 1# [sourcec...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List forall() method with example
Last Updated: 29 July 2019
The forall() method is utilized to check if the given predicate satisfies all the elements of the list or not.Method Definition: def forall (p: (a) = Boolean) : BooleanRet...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List exists() method with example
Last Updated: 29 July 2019
The exists() method is utilized to check if the given predicate satisfy the elements of the list or not.Method Definition: def exists(p: (A) = Boolean): BooleanReturn Type...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List lastIndexOf() method with example
Last Updated: 29 July 2019
The lastIndexOf() method is utilized to find the index of the last occurrence of the element present in this method as argument.Method Definition: def lastIndexOf(elem: A,...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List indexOf() method with example
Last Updated: 29 July 2019
The indexOf() method is utilized to check the index of the element from the stated list present in the method as argument.Method Definition: def indexOf(elem: A, from: Int...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List iterator() method with example
Last Updated: 29 July 2019
The iterator method is utilized to give an iterator.Method Definition: def iterator: Iterator[A]Return Type: It returns a non-empty iterator for non-empty list and returns...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List init() method with example
Last Updated: 29 July 2019
The init() method is utilized to find all the elements of the list except the last one.Method Definition: def init: List[A]Return Type: It returns all the elements of the ...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List concatenation with example
Last Updated: 29 July 2019
In order to concatenate two lists we need to utilize concat() method in Scala.Syntax:List.concat(l1, l2)In above syntax, l1 is list1 and l2 is list2.Below is the example t...
read more
Scala
Scala-Method
Scala
Scala-list
Scala List dropWhile() method with example
Last Updated: 26 July 2019
The dropWhile() method is utilized to drops the longest prefix of elements that satisfies the stated condition.Method Definition: def dropWhile(p: (A) = Boolean): List[A]R...
read more
Scala
Scala-Method
Scala
Scala-list
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !