Haskell tutorial(1) -- Introduction to Haskell

白昼怎懂夜的黑 提交于 2020-01-31 05:00:26

1. What functional programming is and what Haskell is

  What is imperative language?

    --Give a computer sets of tasks and excute it

  What is Functional Programming?

    --Don't tell a computer what to do but tell it what a stuff you want to excute is

 

  What is Haskell?

    Haskell is a purely functional programming.

 

2. Properties of Functional programming.

  (1). Function has not side effects.

    The only thing a function can do is calculate something and return it as a result. One consequence of absence of side effect is Single assignment: A defined   variable can not be redefined.

  (2). Lazy execution

    Functions will not be executed and calculated until its really need to be shown.

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!