Created
November 15, 2016 16:21
-
-
Save kaveet/2fec32c18a35a51476711a912ff442c9 to your computer and use it in GitHub Desktop.
Haskell Reverse List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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