News for hackers. Stuff that matters.
Re:The Day Python Embarassed Imperative Programming by yogsototh on Monday February 27, 2012 @08:39AM (#3638902)
m a: means a type which take a parameter (another type).

For example,

data Maybe a = Nothing | Just a

    - The m is for "Maybe"
    - The a is for "a"
For example:

    (>>=) (Just 3) (\ x -> Just (show x))
should returns: Just "3".

    (>>=) Nothing (\x -> Just (show x))
better written

    Nothing >>= (\x -> Just (show x))
should returns: Nothing

There are no comments on this comment yet.