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

knowledge is my blood

Name: Anonymous 2012-01-30 8:40

/program/, I love knowledge. The rush I get when a concept clicks is my drug. Learning is why I get up in the morning. I want t know everything there is to know. Learning Haskell is one of my greatest adventures and its had me up all night every night for a while.  An anyone else relate? Why am I addicted to the moment of understanding?

Name: Anonymous 2012-01-30 21:16

>>12
well, it the most simple type constructor. but is really useful in practice. Maybe is more useful as a Functor (a functor really is something you can map on)

so
  fmap (+3) [2,6,9] == [5,9,12]
  fmap (+3) (Just 3) == Just 6
  fmap (+3) Nothing == Nothing

i guess you can imagine some situation where you have to make a lot of test on data, and if one fail the final return should be fail too. well maybe is well suited for this behavior

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