4 ms·
So what's the benefit of using streams instead of a normal array?
by Kiro 12y ago
So what's the benefit of using streams instead of a normal array?
- draven 12y agoProcessing data as it becomes available instead of waiting for the whole thing, amongst other things (that's what we do in Scala anyway.)
- serve_yay 12y agoIf you're just mapping an array to double each element, there is no benefit. Which is another way of saying that the examples in this doc are not very good, unfortunately.