var appendList = List.empty[String] appendList :+= "a" appendList :+= "b" appendList :+= "c" var appendList = List.empty[String]
I am getting a null after running this code.please help to find error. Thanks
Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?