Personal tools

Humor/irish joke

From HaskellWiki

< Humor(Difference between revisions)
Jump to: navigation, search
 
m (How to keep an imperative programmer busy for hours)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
Tell him the an example for swapping two variables in Haskell is:
+
==How to keep an imperative programmer busy for hours ==
  +
  +
tell them the syntax for swapping two variables in Haskell is:
   
 
<haskell>
 
<haskell>
a = 4
+
let a=b; b=a in <exp>
b = 3
 
let a=b; b=a in print (b-a)
 
 
</haskell>
 
</haskell>

Latest revision as of 19:33, 20 October 2012

[edit] How to keep an imperative programmer busy for hours

tell them the syntax for swapping two variables in Haskell is:

 let a=b; b=a in <exp>