5 lines
76 B
OCaml
5 lines
76 B
OCaml
|
|
let rec map f l =
|
|
match l with
|
|
| [] -> []
|
|
| x::xs -> f x :: map f xs
|