Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pp:l01 [2020/03/12 14:31]
pdmatei
pp:l01 [2020/04/07 15:05] (current)
pdmatei
Line 1: Line 1:
-====== Introduction to the Haskell language ======+====== ​1. Introduction to the Haskell language ======
  
-The main (and, as we shall soon see, the only!) programming instrument in Haskell is the **function**. In mathematics,​ a function is a *relation** between specified sets ($math[f:​A\rightarrow B]) that associates to every element of $math[A], exactly one element of $math[B]. This is precisely the interpretation of a function in Haskell. (Not to be confused with OOP **methods** or **procedures**). ​+The main (and, as we shall soon see, the only!) programming instrument in Haskell is the **function**. In mathematics,​ a function is a **relation** between specified sets ($math[f:​A\rightarrow B]) that associates to every element of $math[A], exactly one element of $math[B]. This is precisely the interpretation of a function in Haskell. (Not to be confused with OOP **methods** or **procedures**). ​
  
 The identity function is defined in Haskell as: The identity function is defined in Haskell as:
Line 109: Line 109:
 inssort [] =  inssort [] = 
 inssort l =  inssort l = 
-<​code>​+</code> 
  
 ===== Further reading ===== ===== Further reading =====