← Back to Users
sml-chicago's activity in the archive.
Slightly better would be to use pattern matching instead of hd and tl:
fun reverse nil = nil | reverse (x::xs) = reverse xs @ [x]
Slightly better would be to use pattern matching instead of hd and tl: