Author: shubhamgoyal01

Scala Zero Hour: Lists

A class for immutable linked lists representing ordered collections of elements of type. This class comes with two implementing case classes scala.Nil and scala.:: that implement the abstract members isEmpty, head and tail. This class is optimal for,last-in-first-out (LIFO) stack-like access patterns. Given below are a few examples val myList = List(3, 2, 1) myList: List[Int] = List(1, 2, 3, 4)val myListwith4 = 4 :: myList // Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!