Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell Help

Name: Anonymous 2008-10-25 19:41

Haskell beginner here. Anybody know how i shrink this down a bit, sorry I'd figure out myself but i'm sick of learning the same concepts in 20 different languages.

{-

type Month = String

validMonth :: Month -> Bool
validMonth "January" = True
validMonth "February" = True
validMonth "March" = True
validMonth "April" = True
validMonth "May" = True
validMonth "June" = True
validMonth "July" = True
validMonth "August" = True
validMonth "September" = True
validMonth "October" = True
validMonth "November" = True
validMonth "December" = True
validMonth _ = False

-}

Name: Anonymous 2008-10-26 3:25

>>14

/prog/ where a proper computer programming language implementation of a basic concept is called "enterprise" and dismissed.

You idiots can't understand real programming. Its why I get paid the big bucks, to fix your idiot fuck ups and wright correct code.

All of you are fucking Indians with 3rd world "programming" degrees.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List