I recently saw a new Javascript applet, Streams, on the Internet.
I recently saw a new Javascript applet, Streams, on the Internet. I thought it was a common Javascript class library, but after reading the introduction about it, I found that, this is not a simple class library, and the author's focus is not on the function of this class library. Instead, he borrowed a passage in the article: if you are willing to spend 10 minutes to read this article, your understanding of programming may be completely changed (unless you have experience in functional programming !).
Also, Streams is not a new idea. Many functional programming languages support this feature. The so-called 'stream' is the name in Scheme, and Scheme is a dialect of LISP. The Haskell language also supports an infinite list ). The 'Ta', 'tail', 'head', 'map', and 'filter' names are all from the Haskell language. Python is similar to many other languages, but it is called generators )". These ideas have been circulating in the functional programming community for a long time. However, it is a new concept for most Javascript programmers, especially those who do not have functional programming experience.
Stream. js
Stream. js is a small, completely independent Javascript class library (only 2 k) that provides you with a new Javascript Data Structure: streams.