Skip to content

Instantly share code, notes, and snippets.

@shigemk2

shigemk2/functor.hs

Created Apr 1, 2015
Embed
What would you like to do?
main = do
print $ fmap (++ " HEY GUYS IM INSIDE THE JUST") (Just "Something serious.")
print $ fmap (++ " HEY GUYS IM INSIDE THE JUST") Nothing
print $ fmap (*2) (Just 200)
print $ fmap (*2) Nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.