DEV Community

Discussion on: F# is Pretty Cool

Collapse
 
lyfolos profile image
Muhammed H. Alkan

Ah, I just remembered it now. There is OCaml preprocessor or macro language named camlp. That makes you easier to code OCaml, makes you have more features like F# have. For example for each loop

let a_list = ["hello"; "world"] in
for s in a_list do
  print_endline s
done