What's the difference between LazyList and Stream in Scala?
问题 I noticed that Stream is deprecated in Scala 2.13 and they suggest using LazyList . They also say "Use LazyList (which is fully lazy) instead of Stream (which has a lazy tail only)". What does it exactly mean ? Why did they deprecate Stream ? 回答1: NthPortal, a contributor to LazyList , states in Update and improve LazyList docs #7842 The key difference between LazyList and Stream - and its key feature - is that whether or not it is lazy is evaluated lazily. I'm not sure how best to convey