csci2041/public-class-repo/SamplePrograms/Sec_01_1:25pm/map.ml
Michael Zhang 399845160c
f
2018-01-29 17:35:31 -06:00

5 lines
76 B
OCaml

let rec map f l =
match l with
| [] -> []
| x::xs -> f x :: map f xs