In python, did list, listcomprehension, tuple, zip and so on learn from haskell?

Source: Internet
Author: User
0 reply content: No!

First, the list of Python is different from the list of Haskell .. The latter is a linked list, and the former is a dynamic array ..

Then the implementation of Haskell's list comprehension relies on converting to map/filter (fusion optimization is not considered), and finally implementing it through recursion; the implementation of list comprehension in Python depends on the _ iter _ method (that is, the meaning of the iterator). Finally, it is implemented through loops, the termination of the iterator also requires an exception .. I told you that they all learned from lisp !!!

"Lisp is the originator of all languages, including those that appeared earlier than him ."

(It's not just something that a normal person can think of when they pat his head ...... Just like an infix expression, array, or floating point number, who needs to learn?

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.