[Haskell-beginners] haskell problem

B1lal hbk1_hbk1 at hotmail.com
Wed Jul 22 14:21:56 EDT 2009


im having problem with  this Haskell functions 
female, male :: String -> Bool

for finding out the gender for a given name which can be inferred from the title.

For example,

gender> female "Ms. Green"

True

gender> female "King Arthur"

False

gender> male "Mr. Scrooge"

True

gender> female "Miss Beatrix Potter"

True




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090722/caf5ca66/attachment.html


More information about the Beginners mailing list