Skip to content

Instantly share code, notes, and snippets.

@klapaucius
Created October 27, 2011 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klapaucius/1319154 to your computer and use it in GitHub Desktop.
Save klapaucius/1319154 to your computer and use it in GitHub Desktop.
map in haskell
-- GHC/Base.lhs
map _ [] = []
map f (x:xs) = f x : map f xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment