Answers for "print a list ocaml"

1

print list ocaml

let rec print_list = function 
[] -> ()
| e::l -> print_int e ; print_string " " ; print_list l
Posted by: Guest on April-03-2020
0

print a list ocaml

open Printf
let a = [1;2;3;4;5]
let () = List.iter (printf "%d ") a
Posted by: Guest on January-23-2022

Browse Popular Code Answers by Language