This preview shows page 1. Sign up to view the full content.
Unformatted text preview: let rec addList (l:int list) = match l with -> 0 | h::t -> h + addList(t);; let revList (l:int list) = let rec helper (l1:int list) (l2:int list) = match l1 with -> l2 | h::t -> helper t (h::l2) in helper l ;;...
View Full Document
This note was uploaded on 10/25/2009 for the course PHYS 2214 at Cornell University (Engineering School).