Personal tools

Humor/irish joke

From HaskellWiki

< Humor
Revision as of 09:06, 15 December 2006 by Xnito (Talk | contribs)

Jump to: navigation, search

How to keep an imperative programmer busy for hours

give him the example for swapping two variables in Haskell of:

 a = 4
 b = 3
 let a=b; b=a in print (b-a)