Debian Codegraph @

examples/04-library/libdemo/util.ml

raw
1
2 let rec join = function
3 | [] -> ""
4 | [x] -> x
5 | [x;y] -> x ^ " and " ^ y
6 | x::xs -> x ^ ", " ^ join xs
7
8