Difference between revisions of "User:Lenny222/Haskell explained to the busy"
Jump to navigation
Jump to search
m (→Basics) |
(→Basics) |
||
Line 23: | Line 23: | ||
! Answer |
! Answer |
||
|- |
|- |
||
− | |What is the meaning of the dollar sign "'''$'''"? |
+ | |What is the meaning of the '''dollar''' sign "'''$'''"? |
|"$" is a way to avoid typing too many brackets. |
|"$" is a way to avoid typing too many brackets. |
||
For example: |
For example: |
||
Line 37: | Line 37: | ||
<haskell>takeFive = take 5</haskell> |
<haskell>takeFive = take 5</haskell> |
||
|- |
|- |
||
− | |What is the meaning of the dot "'''.'''"? |
+ | |What is the meaning of the '''dot''' "'''.'''"? |
|"." is used in point-free style code similar to "$". |
|"." is used in point-free style code similar to "$". |
||
For example: |
For example: |
Revision as of 10:23, 29 September 2009
You have heard about Haskell but can not afford to spend much time to find out what it is?
I hope this page is for you.
Introduction
Question | Answer |
---|---|
What is Haskell? | TODO |
Why the name "Haskell"? | Haskell is named after the American mathematician Haskell Curry |
Basics
Question | Answer |
---|---|
What is the meaning of the dollar sign "$"? | "$" is a way to avoid typing too many brackets.
For example: foo x = h (g (f x))
is the same as foo x = h $ g $ f x
|
What is point-free style? | Point-free style is another way to define TODO
For example: takeFive x = take 5 x
is the same as takeFive = take 5
|
What is the meaning of the dot "."? | "." is used in point-free style code similar to "$".
For example: foo x = h $ g $ f x
is the same as foo = h . g . f
|
Advanced
Question | Answer |
---|---|
What is a Monad? | TODO |
What is the meaning of "forall"? | TODO |