A primer on the Haskell Learning Guide (i)

Source: Internet
Author: User

Say less nonsense. Business

What is a functional language, my initial understanding is: function-oriented, function-forming functions.

Now the compiler, with the suffix. HS

Skip the download Installation section.

I am under Windows system

I found myself another editor with a graphical interface: WINGHCI

Http://www.softpedia.com/get/System/Launchers-Shutdown-Tools/WinGhci.shtml

Very concise.

A bit like the one that Python comes with.

The Haskell function is the body:

SUCC refers to the next.

The strangest thing about min, the Max function can actually be without parentheses.

Note that a function has the highest priority. ] Of course you can also encapsulate the function yourself.

Create a new I body.hs Notepad under the WINGHCI directory

You can then invoke the function at the command counter:


Then the Haskell if statement

The most amazing thing is that the IF statement must follow the else

body.hs function

Call:

PS: function cannot start with uppercase ... (Incredibly

List:


A primer on the Haskell Learning Guide (i)

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.