Skip to content

Instantly share code, notes, and snippets.

@kaveet
Created November 15, 2016 16:21
Show Gist options
  • Save kaveet/2fec32c18a35a51476711a912ff442c9 to your computer and use it in GitHub Desktop.
Save kaveet/2fec32c18a35a51476711a912ff442c9 to your computer and use it in GitHub Desktop.
Haskell Reverse List
module Reverse where
reverse :: [a] -> [a]
reverse [] = []
reverse (x:xs) = reverse xs ++ [x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment