Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created April 21, 2011 15:57
Show Gist options
  • Save JakubOboza/934829 to your computer and use it in GitHub Desktop.
Save JakubOboza/934829 to your computer and use it in GitHub Desktop.
(putStrLn . show) "11"
-- 11
-- . for compose, compose f g x = f (g x)
-- with curry we receive a thunk ( lamba ? ) from ( putStrLn . show ) and we pass argument of "11" so we -- get same as: putStrLn (show "11"). show is defined in type class "show"
-- its brain damaging :/ but looks pro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment