Skip to content

Instantly share code, notes, and snippets.

@kunishi
Created January 29, 2014 10:20
Show Gist options
  • Save kunishi/8685182 to your computer and use it in GitHub Desktop.
Save kunishi/8685182 to your computer and use it in GitHub Desktop.
fun reverse L =
let
fun rev1 nil L = L
| rev1 (x::xs) L = rev1 xs (x::L)
in
rev1 L nil
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment