What is a stream in the programming world? Why do we need it?
Kindly explain with the help of an analogy, if possible.
In addition to things mentioned above there is a different kind of streams - as defined in functional programming languages such as Scheme or Haskell - a possibly infinite datastructure which is generated by some function on-demand.