[Haskell-beginners] don't understand this

Roelof Wobben rwobben at hotmail.com
Mon Jun 27 15:33:34 CEST 2011



Im reading that book and im now reading chapter4. 

Where I don't get this : 


You have this : 


lucky 7 = "LUCKY NUMBER SEVEN!"  
lucky x = "Sorry, you're out of luck, pal!"   

So I entered these lines with let for it.

So let lucky 7 = "Lucky number seven"

let lucky x = "Sorry, you're out of luck, pal!"


But if I do lucky 7 or lucky 2 I always get the last sentence.






Date: Mon, 27 Jun 2011 16:00:23 +0300
From: mats.rauhala at gmail.com
To: beginners at haskell.org
Subject: Re: [Haskell-beginners] don't understand this

Sorry for the doublepost.

You should also check out the Learn you a haskell book from
http://learnyouahaskell.com which you can read on the internet for free.
The first few chapters teach you these exact things you've been asking

Mats Rauhala

Beginners mailing list
Beginners at haskell.org

More information about the Beginners mailing list