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

From HaskellWiki
Jump to navigation Jump to search
m
Line 12: Line 12:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
  +
! Question
 
  +
! Answer
  +
|-
  +
|What is the meaning of "$"?
  +
|"$" is just a way to avoid typing too many brackets.
  +
For example:
  +
<haskell>g (f x)
  +
</haskell>
  +
is the same as
  +
<haskell>
  +
g $ f x
  +
</haskell>
 
|}
 
|}

Revision as of 08:39, 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:

g (f x)

is the same as

g $ f x