List Basics (in Scala)

preview_player
Показать описание
This video covers the basics of the List type in Scala. This includes basic creation, usage, and a function that reads in values to build a List.
Рекомендации по теме
Комментарии
Автор

can you please explain why we use (inputList(n-1))

kishorekumar
Автор

As list are immutable so conn'ing elements to list will contains n# of lists and actually we need only final list.
so isn't it inefficient in case of large numbers where con will create too many unused lists??
I was coming to garbage collection part... how scala manages these??

surendratiwari