News for hackers. Stuff that matters.
Re:An Introduction to Reactive Programming by Sharlin on Monday June 30, 2014 @05:26PM (#7967826)
Streams are lazy. They work in the same manner as lazy collections in languages such as Scala and Haskell - if you have an infinite collection, say, the set of all prime numbers, and do a map operation on it, it does not try to eagerly execute an infinite loop. Instead, the mapping is only done when when you actually request any of the elements of the set.

There are no comments on this comment yet.