Skip to content

Instantly share code, notes, and snippets.

@benjic
Created February 27, 2015 02:58
Show Gist options
  • Save benjic/d0c19f5cfe2f55690d4c to your computer and use it in GitHub Desktop.
Save benjic/d0c19f5cfe2f55690d4c to your computer and use it in GitHub Desktop.
*Main> :load reverse.hs
[1 of 1] Compiling Main ( reverse.hs, interpreted )
Ok, modules loaded: Main.
*Main> let a = [1..10]
*Main> a
[1,2,3,4,5,6,7,8,9,10]
*Main> reverseList a
[10,9,8,7,6,5,4,3,2,1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment