ocaml how to print a list of any type code example
Example: print list ocaml
let rec print_list = function
[] -> ()
| e::l -> print_int e ; print_string " " ; print_list l
let rec print_list = function
[] -> ()
| e::l -> print_int e ; print_string " " ; print_list l