
23 Jul
2009
23 Jul
'09
12:11 a.m.
On Wed, Jul 22, 2009 at 07:21:56PM +0100, B1lal wrote:
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
What have you tried so far? What specifically are you having problems with? This sounds a lot like a homework problem; we are happy to help you with specific problems but in general we won't do your homework for you. -Brent