Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let reverseList input =
- let rec reverseList' aList cont =
- match aList with
- | [] -> []
- | hd::[] -> hd::cont()
- | hd::tail ->
- reverseList' tail (fun () -> hd::cont())
- reverseList' input (fun () -> [])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement