Difference between revisions of "User:Lenny222/Haskell explained to the busy"

From HaskellWiki
Jump to navigation Jump to search
Line 15: Line 15:
 
! Answer
 
! Answer
 
|-
 
|-
|What is the meaning of "$"?
+
|What is the meaning of '''$'''?
|"$" is just a way to avoid typing too many brackets.
+
|'''$''' is just a way to avoid typing too many brackets.
 
For example:
 
For example:
 
<haskell>h (g (f x))
 
<haskell>h (g (f x))

Revision as of 08:40, 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 will be for you.

Introduction

Syntax

Question Answer
What is the meaning of $? $ is just a way to avoid typing too many brackets.

For example:

h (g (f x))

is the same as

h $ g $ f x