[Haskell-beginners] haskell problem
Brent Yorgey
byorgey at seas.upenn.edu
Thu Jul 23 00:11:15 EDT 2009
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
More information about the Beginners
mailing list