☰
Debian Codegraph
@
0.16.1-2
/
/
examples
/
05-lex-yacc
/
lib
/
util.ml
☽
☼
examples/05-lex-yacc/lib/util.ml
code
plain
raw
LGPL-2 with OCamlbuild exception
2007-2016 Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt; 2007-2016 Institut National de Recherche en Informatique et en Automatique
debian/copyright
1
2
let rec join = function
3
| [] -> ""
4
| [x] -> x
5
| [x;y] -> x ^ " and " ^ y
6
| x::xs -> x ^ ", " ^ join xs
7
8