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