Advertisement
clairec

reverse'

Sep 6th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. reverse' :: [a] -> [a]
  2. reverse' [] = []
  3. reverse' (x:xs) = reverse' (xs ++ [x])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement