New JavaScript Data Structure Streams

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.